Class: CSS::Selectors::ComplexSelector
- Inherits:
-
Data
- Object
- Data
- CSS::Selectors::ComplexSelector
- Includes:
- Node
- Defined in:
- lib/css/selectors/nodes.rb
Overview
Compounds connected by combinators. ‘compounds.size == combinators.size + 1`. `combinators` connects `compounds` to `compounds[i + 1]`.
Instance Attribute Summary collapse
-
#combinators ⇒ Object
readonly
Returns the value of attribute combinators.
-
#compounds ⇒ Object
readonly
Returns the value of attribute compounds.
Instance Method Summary collapse
Instance Attribute Details
#combinators ⇒ Object (readonly)
Returns the value of attribute combinators
15 16 17 |
# File 'lib/css/selectors/nodes.rb', line 15 def combinators @combinators end |
#compounds ⇒ Object (readonly)
Returns the value of attribute compounds
15 16 17 |
# File 'lib/css/selectors/nodes.rb', line 15 def compounds @compounds end |
Instance Method Details
#to_s ⇒ Object
17 |
# File 'lib/css/selectors/nodes.rb', line 17 def to_s = Selectors::Serializer.serialize(self) |