Class: Interpipe::Organizer

Inherits:
Object
  • Object
show all
Includes:
Interactor
Defined in:
lib/interpipe/organizer.rb

Direct Known Subclasses

Pipe, Splitter

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Interactor

included, #initialize, #perform, #setup

Class Method Details

.[](*interactors) ⇒ Object


7
8
9
10
11
# File 'lib/interpipe/organizer.rb', line 7

def self.[](*interactors)
  anon_class = Class.new(self)
  anon_class.interactors = interactors
  anon_class
end

.interactorsObject


13
14
15
# File 'lib/interpipe/organizer.rb', line 13

def self.interactors
  @interactors ||= []
end

.interactors=(interactors) ⇒ Object


17
18
19
# File 'lib/interpipe/organizer.rb', line 17

def self.interactors=(interactors)
  @interactors = interactors
end

Instance Method Details

#interactorsObject


21
22
23
# File 'lib/interpipe/organizer.rb', line 21

def interactors
  self.class.interactors
end