Class: UnderOs::Config
Overview
Application config proxy
Instance Method Summary collapse
-
#initialize(app) ⇒ Config
constructor
A new instance of Config.
- #navbar ⇒ Object
- #navbar=(visible) ⇒ Object
- #root_page ⇒ Object
- #root_page=(page) ⇒ Object
- #status_bar ⇒ Object
- #status_bar=(visible) ⇒ Object
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
#navbar ⇒ Object
26 27 28 |
# File 'lib/under_os/config.rb', line 26 def @app.history..visible end |
#navbar=(visible) ⇒ Object
30 31 32 |
# File 'lib/under_os/config.rb', line 30 def (visible) @app.history..__send__ visible ? :show : :hide, false end |
#root_page ⇒ Object
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_bar ⇒ Object
18 19 20 |
# File 'lib/under_os/config.rb', line 18 def @status_bar end |
#status_bar=(visible) ⇒ Object
22 23 24 |
# File 'lib/under_os/config.rb', line 22 def (visible) @status_bar = visible end |