Class: Hexp::CssSelector::SimpleSequence
- Inherits:
-
Object
- Object
- Hexp::CssSelector::SimpleSequence
- Includes:
- Members
- Defined in:
- lib/hexp/css_selector.rb
Overview
A CSS sequence that relates to a single element, like 'div.caption:first'
Instance Attribute Summary
Attributes included from Members
Instance Method Summary (collapse)
Methods included from Members
included, #initialize, #inspect
Instance Method Details
- (Boolean) matches?(element)
114 115 116 117 118 |
# File 'lib/hexp/css_selector.rb', line 114 def matches?(element) members.all? do |simple| simple.matches?(element) end end |