Module: MobilePage
- Includes:
- Radiant::Taggable
- Defined in:
- lib/mobile_page.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#mobile ⇒ Object
Returns the value of attribute mobile.
Instance Method Summary collapse
-
#app? ⇒ Boolean
The extended site controller calls page.mobile = true if we are in a mobile context.
-
#mobile? ⇒ Boolean
The extended site controller calls page.mobile = true if we are in a mobile context.
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
2 3 4 |
# File 'lib/mobile_page.rb', line 2 def app @app end |
#mobile ⇒ Object
Returns the value of attribute mobile.
2 3 4 |
# File 'lib/mobile_page.rb', line 2 def mobile @mobile end |
Instance Method Details
#app? ⇒ Boolean
The extended site controller calls page.mobile = true if we are in a mobile context
12 13 14 |
# File 'lib/mobile_page.rb', line 12 def app? !!@app end |
#mobile? ⇒ Boolean
The extended site controller calls page.mobile = true if we are in a mobile context
6 7 8 |
# File 'lib/mobile_page.rb', line 6 def mobile? !!@mobile end |