Class: Gammo::CSSSelector::AST::Selector::Universal

Inherits:
Base
  • Object
show all
Defined in:
lib/gammo/css_selector/ast/selector.rb

Instance Attribute Summary

Attributes inherited from Base

#selectors

Instance Method Summary collapse

Methods inherited from Base

#combine, #evaluate, #search_descendant

Constructor Details

#initialize(**opts) ⇒ Universal

Returns a new instance of Universal.



77
78
79
# File 'lib/gammo/css_selector/ast/selector.rb', line 77

def initialize(**opts)
  super
end

Instance Method Details

#match?(context) ⇒ Boolean

Returns:

  • (Boolean)


81
82
83
# File 'lib/gammo/css_selector/ast/selector.rb', line 81

def match?(context)
  super && context.node.kind_of?(Gammo::Node::Element)
end