Class: Crispy::DesktopDevice
- Defined in:
- lib/crispy-mobile/device.rb
Constant Summary
Constants inherited from Device
Crispy::Device::SUPPORTED_DISPLAY_WIDTHS
Instance Attribute Summary
Attributes inherited from Device
Instance Method Summary collapse
- #display_width ⇒ Object
-
#initialize(profile = WURFL::Hash.new) ⇒ DesktopDevice
constructor
A new instance of DesktopDevice.
Methods inherited from Device
Constructor Details
#initialize(profile = WURFL::Hash.new) ⇒ DesktopDevice
Returns a new instance of DesktopDevice.
37 38 39 40 |
# File 'lib/crispy-mobile/device.rb', line 37 def initialize(profile = WURFL::Hash.new) profile.reverse_merge! resolution_width: display_width, id: 'desktop' super(profile) end |
Instance Method Details
#display_width ⇒ Object
42 43 44 |
# File 'lib/crispy-mobile/device.rb', line 42 def display_width SUPPORTED_DISPLAY_WIDTHS[:desktop] || 1024 end |