Module: Interactify::Dsl::Organizer

Extended by:
ActiveSupport::Concern
Defined in:
lib/interactify/dsl/organizer.rb

Instance Method Summary collapse

Instance Method Details

#callObject



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/interactify/dsl/organizer.rb', line 18

def call
  self.class.organized.each do |interactor|
    instance = interactor.new(context)

    instance.instance_variable_set(
      :@_interactor_called_by_non_bang_method,
      @_interactor_called_by_non_bang_method
    )

    instance.tap(&:run!)
  end
end