Class: CSSPool::Selectors::Simple
- Defined in:
- lib/csspool/selectors/simple.rb
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.
Attributes inherited from Node
#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos
Instance Method Summary collapse
-
#initialize(name, combinator = nil) ⇒ Simple
constructor
A new instance of Simple.
Methods inherited from Node
#==, #accept, #children, #each, #hash, #to_css, #to_minified_css
Constructor Details
#initialize(name, combinator = nil) ⇒ Simple
Returns a new instance of Simple.
10 11 12 13 14 15 |
# File 'lib/csspool/selectors/simple.rb', line 10 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.
7 8 9 |
# File 'lib/csspool/selectors/simple.rb', line 7 def additional_selectors @additional_selectors end |
#combinator ⇒ Object
Returns the value of attribute combinator.
8 9 10 |
# File 'lib/csspool/selectors/simple.rb', line 8 def combinator @combinator end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/csspool/selectors/simple.rb', line 5 def name @name end |
#parse_location ⇒ Object
Returns the value of attribute parse_location.
6 7 8 |
# File 'lib/csspool/selectors/simple.rb', line 6 def parse_location @parse_location end |