Sha256: ae6244d3d0eb0592752caea855707ea7834cb9e0a2c0c724965fabbb209ad7da
Contents?: true
Size: 676 Bytes
Versions: 5
Compression:
Stored size: 676 Bytes
Contents
class UnderOs::App class << self def start(&block) @start_block = block end def setup(ios_app, options) @history = UnderOs::History.new instance_exec self, &@start_block @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) @window.rootViewController = @history._ @window.makeKeyAndVisible end def config @config ||= UnderOs::Config.new(self) end def history @history end def stylesheet @stylesheet ||= UnderOs::Page::Stylesheet.new.tap do |stylesheet| stylesheet.load('under-os.css') stylesheet.load('application.css') end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
under-os-1.3.0 | lib/under_os/app.rb |
under-os-1.2.1 | lib/under_os/app.rb |
under-os-1.2.0 | lib/under_os/app.rb |
under-os-1.1.0 | lib/under_os/app.rb |
under-os-1.0.0 | lib/under_os/app.rb |