Class: Gammo::CSSSelector::AST::Selector::Pseudo
- Inherits:
-
Object
- Object
- Gammo::CSSSelector::AST::Selector::Pseudo
- Defined in:
- lib/gammo/css_selector/ast/selector/pseudo_class.rb
Defined Under Namespace
Classes: Checked, Disabled, Enabled, NthChild, Root
Constant Summary
Constants included from Subclassify
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Pseudo
constructor
A new instance of Pseudo.
- #match?(context) ⇒ Boolean
Constructor Details
#initialize(*args) ⇒ Pseudo
Returns a new instance of Pseudo.
10 11 12 |
# File 'lib/gammo/css_selector/ast/selector/pseudo_class.rb', line 10 def initialize(*args) @arguments = args end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/gammo/css_selector/ast/selector/pseudo_class.rb', line 6 def value @value end |
Instance Method Details
#match?(context) ⇒ Boolean
14 15 16 |
# File 'lib/gammo/css_selector/ast/selector/pseudo_class.rb', line 14 def match?(context) raise NotImplemented, "#match? must be implemented by sub class" end |