Class: CSSPool::Selectors::MediaExpression

Inherits:
Additional show all
Defined in:
lib/csspool/selectors/media_expression.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#==, #accept, #children, #each, #hash, #to_css, #to_minified_css

Constructor Details

#initialize(name, value) ⇒ MediaExpression

Returns a new instance of MediaExpression.



7
8
9
10
# File 'lib/csspool/selectors/media_expression.rb', line 7

def initialize name, value
  @name = name
  @value = value
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/csspool/selectors/media_expression.rb', line 4

def name
  @name
end

#valueObject

Returns the value of attribute value.



5
6
7
# File 'lib/csspool/selectors/media_expression.rb', line 5

def value
  @value
end