Class: SexpPath::SexpCollection
- Inherits:
-
Array
- Object
- Array
- SexpPath::SexpCollection
- Defined in:
- lib/sexp_path/sexp_collection.rb
Overview
Instance Method Summary collapse
-
#search(pattern) ⇒ Object
(also: #/)
See Traverse#search.
Instance Method Details
#search(pattern) ⇒ Object Also known as: /
See Traverse#search
11 12 13 |
# File 'lib/sexp_path/sexp_collection.rb', line 11 def search(pattern) inject(SexpCollection.new){|collection, match| collection.concat match.sexp.search(pattern, match) } end |