Module: Interaktor::Organizer::ClassMethods
- Defined in:
- lib/interaktor/organizer.rb
Instance Method Summary collapse
-
#organize(*interaktors) ⇒ void
Declare Interaktors to be invoked as part of the Interaktor::Organizer’s invocation.
-
#organized ⇒ Array<Interaktor>
An array of declared Interaktors to be invoked.
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.
24 25 26 |
# File 'lib/interaktor/organizer.rb', line 24 def organize(*interaktors) organized.concat(interaktors.flatten) end |
#organized ⇒ Array<Interaktor>
An array of declared Interaktors to be invoked.
31 32 33 |
# File 'lib/interaktor/organizer.rb', line 31 def organized @organized ||= [] end |