Class: Reynard::Specification::Finder

Inherits:
Object
  • Object
show all
Defined in:
lib/reynard/specification/finder.rb

Overview

Finds nodes in a specification that match a query.

Instance Method Summary collapse

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_eachObject



12
13
14
# File 'lib/reynard/specification/finder.rb', line 12

def find_each(&)
  find_into([], &)
end