class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
alert = UIAlertView.new
alert.message = 'Hello World'
alert.show
true
end
endclass 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
endNet.get(url) do |response|
response_model = Response.new(response)
response_block.call(response_model)
endStore['foo'] = 42
Store.all
#=> { 'foo' => 42 }
Store.delete('foo')JSON.load('{"foo":"bar"}')
#=> {"foo" => "bar"}
{"foo" => "bar"}.to_json
#=> '{"foo":"bar"}'Model
Presenter
View
View
iOS
Android
Silmood
@silmood