class UnderOs::App

Public Class Methods

config() click to toggle source
# File lib/under_os/app.rb, line 17
def config
  @config ||= UnderOs::Config.new(self)
end
setup(ios_app, options) click to toggle source
# 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) click to toggle source
# File lib/under_os/app.rb, line 5
def start(&block)
  @start_block = block
end

Protected Class Methods

root_controller() click to toggle source
# File lib/under_os/app.rb, line 23
def root_controller
  # just a fallback, supposed to be replaced with the real thing in a submodule
  UIViewController.alloc.initWithNibName(nil, bundle: nil)
end