Class: SexpPath::Matcher::Wild
- Defined in:
- lib/sexp_path/matcher/wild.rb
Overview
See SexpQueryBuilder.wild and SexpQueryBuilder._
Instance Method Summary collapse
- #inspect ⇒ Object
-
#satisfy?(o, data = {}) ⇒ Boolean
Matches any single element.
Methods inherited from Base
Methods included from Traverse
#capture_as, #replace_sexp, #search, #search_each
Instance Method Details
#inspect ⇒ Object
9 10 11 |
# File 'lib/sexp_path/matcher/wild.rb', line 9 def inspect "wild" end |
#satisfy?(o, data = {}) ⇒ Boolean
Matches any single element.
5 6 7 |
# File 'lib/sexp_path/matcher/wild.rb', line 5 def satisfy?(o, data={}) capture_match o, data end |