Class: Reynard::Specification::Finder
- Inherits:
-
Object
- Object
- Reynard::Specification::Finder
- Defined in:
- lib/reynard/specification/finder.rb
Overview
Finds nodes in a specification that match a query.
Instance Method Summary collapse
- #find_each ⇒ Object
-
#initialize(specification:, query:) ⇒ Finder
constructor
A new instance of Finder.
Constructor Details
#initialize(specification:, query:) ⇒ Finder
Returns a new instance of Finder.
7 8 9 10 |
# File 'lib/reynard/specification/finder.rb', line 7 def initialize(specification:, query:) @specification = specification @query = query end |
Instance Method Details
#find_each ⇒ Object
12 13 14 |
# File 'lib/reynard/specification/finder.rb', line 12 def find_each(&) find_into([], &) end |