Class: CSSPool::Selectors::Simple
- Defined in:
- lib/csspool/selectors/simple.rb
Constant Summary collapse
- NO_COMBINATOR =
0
- DESCENDENT =
1
- PRECEDED_BY =
2
- CHILD =
3
Instance Attribute Summary collapse
-
#additional_selectors ⇒ Object
Returns the value of attribute additional_selectors.
-
#combinator ⇒ Object
Returns the value of attribute combinator.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parse_location ⇒ Object
Returns the value of attribute parse_location.
Instance Method Summary collapse
-
#initialize(name, combinator = nil) ⇒ Simple
constructor
A new instance of Simple.
Methods included from Visitable
#==, #accept, #children, #each, #hash, #to_css
Constructor Details
#initialize(name, combinator = nil) ⇒ Simple
Returns a new instance of Simple.
14 15 16 17 18 19 |
# File 'lib/csspool/selectors/simple.rb', line 14 def initialize name, combinator = nil @name = name @combinator = combinator @parse_location = nil @additional_selectors = [] end |
Instance Attribute Details
#additional_selectors ⇒ Object
Returns the value of attribute additional_selectors.
11 12 13 |
# File 'lib/csspool/selectors/simple.rb', line 11 def additional_selectors @additional_selectors end |
#combinator ⇒ Object
Returns the value of attribute combinator.
12 13 14 |
# File 'lib/csspool/selectors/simple.rb', line 12 def combinator @combinator end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/csspool/selectors/simple.rb', line 9 def name @name end |
#parse_location ⇒ Object
Returns the value of attribute parse_location.
10 11 12 |
# File 'lib/csspool/selectors/simple.rb', line 10 def parse_location @parse_location end |