Class: Hexp::CssSelector::Sequence
- Inherits:
-
Object
- Object
- Hexp::CssSelector::Sequence
- Includes:
- Members
- Defined in:
- lib/hexp/css_selector.rb
Overview
A single CSS sequence like 'div span .foo'
Instance Attribute Summary
Attributes included from Members
Instance Method Summary (collapse)
Methods included from Members
included, #initialize, #inspect
Instance Method Details
- (Object) drop_head
100 101 102 |
# File 'lib/hexp/css_selector.rb', line 100 def drop_head self.class.new(members.drop(1)) end |
- (Boolean) head_matches?(element)
96 97 98 |
# File 'lib/hexp/css_selector.rb', line 96 def head_matches?(element) members.first.matches?(element) end |