Class: CSSPool::Selectors::Attribute
- Inherits:
-
Additional
- Object
- Node
- Additional
- CSSPool::Selectors::Attribute
- Defined in:
- lib/csspool/selectors/attribute.rb
Constant Summary collapse
- NO_MATCH =
0
- SET =
1
- EQUALS =
2
- INCLUDES =
3
- DASHMATCH =
4
Instance Attribute Summary collapse
-
#match_way ⇒ Object
Returns the value of attribute match_way.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, match_way) ⇒ Attribute
constructor
A new instance of Attribute.
Methods included from Visitable
#==, #accept, #children, #each, #hash, #to_css
Constructor Details
#initialize(name, value, match_way) ⇒ Attribute
Returns a new instance of Attribute.
14 15 16 17 18 |
# File 'lib/csspool/selectors/attribute.rb', line 14 def initialize name, value, match_way @name = name @value = value @match_way = match_way end |
Instance Attribute Details
#match_way ⇒ Object
Returns the value of attribute match_way.
6 7 8 |
# File 'lib/csspool/selectors/attribute.rb', line 6 def match_way @match_way end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/csspool/selectors/attribute.rb', line 4 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/csspool/selectors/attribute.rb', line 5 def value @value end |