Module: MobilePage

Includes:
Radiant::Taggable
Defined in:
lib/mobile_page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appObject

Returns the value of attribute app.



2
3
4
# File 'lib/mobile_page.rb', line 2

def app
  @app
end

#mobileObject

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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


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

def mobile?
  !!@mobile
end