class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) alert = UIAlertView.new alert.message = 'Hello World' alert.show true end end
class MainActivity < Android::App::Activity def onCreate(savedInstanceState) puts "Hello World!" super view = Android::Widget::TextView.new(self) view.text = "Hello World!" self.contentView = view end end
Net.get(url) do |response| response_model = Response.new(response) response_block.call(response_model) end
Store['foo'] = 42 Store.all #=> { 'foo' => 42 } Store.delete('foo')
JSON.load('{"foo":"bar"}') #=> {"foo" => "bar"} {"foo" => "bar"}.to_json #=> '{"foo":"bar"}'
Model
Presenter
View
iOS
Android
Silmood
@silmood
By Petter Hdz