Module: Interaktor::Organizer::ClassMethods

Defined in:
lib/interaktor/organizer.rb

Instance Method Summary collapse

Instance Method Details

#organize(*interaktors) ⇒ void

This method returns an undefined value.

Declare Interaktors to be invoked as part of the Interaktor::Organizer’s invocation. These interaktors are invoked in the order in which they are declared.

Parameters:



24
25
26
# File 'lib/interaktor/organizer.rb', line 24

def organize(*interaktors)
  organized.concat(interaktors.flatten)
end

#organizedArray<Interaktor>

An array of declared Interaktors to be invoked.

Returns:



31
32
33
# File 'lib/interaktor/organizer.rb', line 31

def organized
  @organized ||= []
end