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