Class: Sprig::DirectiveList
- Inherits:
-
Object
- Object
- Sprig::DirectiveList
- Defined in:
- lib/sprig/directive_list.rb
Instance Method Summary collapse
- #add_seeds_to_hopper(hopper) ⇒ Object
-
#initialize(definitions) ⇒ DirectiveList
constructor
A new instance of DirectiveList.
Constructor Details
#initialize(definitions) ⇒ DirectiveList
Returns a new instance of DirectiveList.
4 5 6 |
# File 'lib/sprig/directive_list.rb', line 4 def initialize(definitions) @definitions = Array(definitions) end |
Instance Method Details
#add_seeds_to_hopper(hopper) ⇒ Object
8 9 10 11 12 |
# File 'lib/sprig/directive_list.rb', line 8 def add_seeds_to_hopper(hopper) seed_factories.each do |factory| factory.add_seeds_to_hopper(hopper) end end |