Class: CSS::Selectors::PseudoClass

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

Overview

‘argument` is `nil`, a `SelectorList` (`:not/:is/:where/:has`), an `AnB` (`:nth-*`), or a raw `Array<Token>` for unrecognized functional pseudos.

Instance Attribute Summary collapse

Instance Attribute Details

#argumentObject (readonly)

Returns the value of attribute argument

Returns:

  • (Object)

    the current value of argument



50
51
52
# File 'lib/css/selectors/nodes.rb', line 50

def argument
  @argument
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



50
51
52
# File 'lib/css/selectors/nodes.rb', line 50

def name
  @name
end