Class: Gammo::CSSSelector::AST::Selector::Universal
- Defined in:
- lib/gammo/css_selector/ast/selector.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(**opts) ⇒ Universal
constructor
A new instance of Universal.
- #match?(context) ⇒ Boolean
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
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 |