Class: Hexp::CssSelector::Id
- Inherits:
-
Object
- Object
- Hexp::CssSelector::Id
- Includes:
- Named
- Defined in:
- lib/hexp/css_selector.rb
Overview
A CSS id declaration, like ‘#section-14’
Instance Attribute Summary
Attributes included from Named
Instance Method Summary collapse
-
#matches?(element) ⇒ true, false
private
Does the node match this id selector.
Methods included from Named
Instance Method Details
#matches?(element) ⇒ true, false
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Does the node match this id selector
250 251 252 |
# File 'lib/hexp/css_selector.rb', line 250 def matches?(element) element.attr('id') == name end |