Class: Yass::Selector

Inherits:
Object
  • Object
show all
Includes:
Node
Defined in:
lib/yass/selectors.rb

Defined Under Namespace

Classes: AnPlusB, AttributeInNoNamespace, AttributeInNoNamespaceExists, AttributeOther, Combinator, DefaultNamespace, Has, Host, Id, Is, Klass, LocalName, Namespace, Negation, NonTsPseudoClass, Nth, NthOf, Part, Slotted, SpecificNamespaceConstraint, Where

Constant Summary collapse

RUBY_METHODS =
%i(children kind).freeze

Instance Method Summary collapse

Methods included from Node

#to_h

Instance Method Details

#accept(visitor) ⇒ Object



9
10
11
# File 'lib/yass/selectors.rb', line 9

def accept(visitor)
  visitor.visit_selector(self)
end

#kindObject



13
14
15
# File 'lib/yass/selectors.rb', line 13

def kind
  :selector
end