Class: UnderOs::App

Inherits:
Object show all
Defined in:
lib/under_os/app.rb

Class Method Summary collapse

Class Method Details

.configObject



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, options)
  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