Class: UnderOs::App
Class Method Summary collapse
Class Method Details
.config ⇒ Object
17 18 19 |
# File 'lib/under_os/app.rb', line 17 def config @config ||= UnderOs::Config.new(self) end |
.setup(ios_app, options) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/under_os/app.rb', line 9 def setup(ios_app, ) instance_exec self, &@start_block @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) @window.rootViewController = root_controller @window.makeKeyAndVisible end |
.start(&block) ⇒ Object
5 6 7 |
# File 'lib/under_os/app.rb', line 5 def start(&block) @start_block = block end |