Class: Habaki::Visitor::Media
- Inherits:
-
Object
- Object
- Habaki::Visitor::Media
- Defined in:
- lib/habaki/visitor/media.rb
Overview
media query visitor
Instance Attribute Summary collapse
-
#height ⇒ Integer
height, in pixels.
-
#type ⇒ String
eg “print”, “screen”.
-
#width ⇒ Integer
width, in pixels.
Instance Method Summary collapse
-
#initialize(type = "all", width = nil, height = nil) ⇒ Media
constructor
A new instance of Media.
Constructor Details
#initialize(type = "all", width = nil, height = nil) ⇒ Media
Returns a new instance of Media.
15 16 17 18 19 |
# File 'lib/habaki/visitor/media.rb', line 15 def initialize(type = "all", width = nil, height = nil) @type = type @width = width @height = height end |
Instance Attribute Details
#height ⇒ Integer
height, in pixels
13 14 15 |
# File 'lib/habaki/visitor/media.rb', line 13 def height @height end |
#type ⇒ String
eg “print”, “screen”
7 8 9 |
# File 'lib/habaki/visitor/media.rb', line 7 def type @type end |
#width ⇒ Integer
width, in pixels
10 11 12 |
# File 'lib/habaki/visitor/media.rb', line 10 def width @width end |