Class: CSSPool::Terms::Resolution
- Defined in:
- lib/csspool/terms/resolution.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
-
#parse_location ⇒ Object
Returns the value of attribute parse_location.
-
#unit ⇒ Object
Returns the value of attribute unit.
Attributes inherited from Node
#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos
Instance Method Summary collapse
-
#initialize(number, unit, parse_location = {}) ⇒ Resolution
constructor
A new instance of Resolution.
Methods inherited from Node
#==, #accept, #children, #each, #hash, #to_css, #to_minified_css
Constructor Details
#initialize(number, unit, parse_location = {}) ⇒ Resolution
Returns a new instance of Resolution.
6 7 8 9 10 |
# File 'lib/csspool/terms/resolution.rb', line 6 def initialize(number, unit, parse_location = {}) @number = number @unit = unit @parse_location = parse_location end |
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/csspool/terms/resolution.rb', line 4 def number @number end |
#parse_location ⇒ Object
Returns the value of attribute parse_location.
4 5 6 |
# File 'lib/csspool/terms/resolution.rb', line 4 def parse_location @parse_location end |
#unit ⇒ Object
Returns the value of attribute unit.
4 5 6 |
# File 'lib/csspool/terms/resolution.rb', line 4 def unit @unit end |