Class: UnderOs::Config

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

Overview

Application config proxy

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Config

Returns a new instance of Config.



6
7
8
# File 'lib/under_os/config.rb', line 6

def initialize(app)
  @app = app
end

Instance Method Details



26
27
28
# File 'lib/under_os/config.rb', line 26

def navbar
  @app.history.navbar.visible
end


30
31
32
# File 'lib/under_os/config.rb', line 30

def navbar=(visible)
  @app.history.navbar.__send__ visible ? :show : :hide, false
end

#root_pageObject



10
11
12
# File 'lib/under_os/config.rb', line 10

def root_page
  @app.history.root_page
end

#root_page=(page) ⇒ Object



14
15
16
# File 'lib/under_os/config.rb', line 14

def root_page=(page)
  @app.history.root_page = page
end

#status_barObject



18
19
20
# File 'lib/under_os/config.rb', line 18

def status_bar
  @status_bar
end

#status_bar=(visible) ⇒ Object



22
23
24
# File 'lib/under_os/config.rb', line 22

def status_bar=(visible)
  @status_bar = visible
end