Class: Gammo::CSSSelector::AST::Selector::Attrib::DashMatch
- Inherits:
-
Gammo::CSSSelector::AST::Selector::Attrib
- Object
- Gammo::CSSSelector::AST::Selector::Attrib
- Gammo::CSSSelector::AST::Selector::Attrib::DashMatch
- Defined in:
- lib/gammo/css_selector/ast/selector/attrib_selector.rb
Constant Summary
Constants included from Subclassify
Instance Attribute Summary
Attributes inherited from Gammo::CSSSelector::AST::Selector::Attrib
Instance Method Summary collapse
Methods inherited from Gammo::CSSSelector::AST::Selector::Attrib
Constructor Details
This class inherits a constructor from Gammo::CSSSelector::AST::Selector::Attrib
Instance Method Details
#match?(context) ⇒ Boolean
67 68 69 70 |
# File 'lib/gammo/css_selector/ast/selector/attrib_selector.rb', line 67 def match?(context) val = attrib_value(context.node) || '' val == @value || (val.start_with?(@value) && val[@value.length] == ?-) end |