Class: CSS::Selectors::CompoundSelector

Inherits:
Data
  • Object
show all
Includes:
Node
Defined in:
lib/css/selectors/nodes.rb

Overview

A run of simple selectors with no combinators between them, e.g. ‘a.foo:hover` or `[href]:not(:visited)`.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#componentsObject (readonly)

Returns the value of attribute components

Returns:

  • (Object)

    the current value of components



22
23
24
# File 'lib/css/selectors/nodes.rb', line 22

def components
  @components
end

Instance Method Details

#to_sObject



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

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