Class: CSSPool::CSS::MediaFeature

Inherits:
Node
  • Object
show all
Defined in:
lib/csspool/css/media_feature.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos

Instance Method Summary collapse

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_locationObject

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

#propertyObject

Returns the value of attribute property.



4
5
6
# File 'lib/csspool/css/media_feature.rb', line 4

def property
  @property
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/csspool/css/media_feature.rb', line 4

def value
  @value
end