Class: Gammo::CSSSelector::AST::Selector::Pseudo::Root

Inherits:
Gammo::CSSSelector::AST::Selector::Pseudo show all
Defined in:
lib/gammo/css_selector/ast/selector/pseudo_class.rb

Constant Summary

Constants included from Subclassify

Subclassify::NotFoundError

Instance Attribute Summary

Attributes inherited from Gammo::CSSSelector::AST::Selector::Pseudo

#value

Instance Method Summary collapse

Methods inherited from Gammo::CSSSelector::AST::Selector::Pseudo

#initialize

Constructor Details

This class inherits a constructor from Gammo::CSSSelector::AST::Selector::Pseudo

Instance Method Details

#match?(context) ⇒ Boolean

Returns:

  • (Boolean)


54
55
56
57
# File 'lib/gammo/css_selector/ast/selector/pseudo_class.rb', line 54

def match?(context)
  # TODO:
  context.node.tag == Tags::Html
end