Class: CSSPool::Selectors::MediaExpression
- Inherits:
-
Additional
- Object
- Node
- Additional
- CSSPool::Selectors::MediaExpression
- Defined in:
- lib/csspool/selectors/media_expression.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ MediaExpression
constructor
A new instance of MediaExpression.
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
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/csspool/selectors/media_expression.rb', line 4 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/csspool/selectors/media_expression.rb', line 5 def value @value end |