Class: CSS::Selectors::ComplexSelector

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#combinatorsObject (readonly)

Returns the value of attribute combinators

Returns:

  • (Object)

    the current value of combinators



15
16
17
# File 'lib/css/selectors/nodes.rb', line 15

def combinators
  @combinators
end

#compoundsObject (readonly)

Returns the value of attribute compounds

Returns:

  • (Object)

    the current value of compounds



15
16
17
# File 'lib/css/selectors/nodes.rb', line 15

def compounds
  @compounds
end

Instance Method Details

#to_sObject



17
# File 'lib/css/selectors/nodes.rb', line 17

def to_s = Selectors::Serializer.serialize(self)