Class: PiecePipe::MethodAssemblyStation
- Inherits:
-
AssemblyStation
- Object
- PipelineElement
- AssemblyStation
- PiecePipe::MethodAssemblyStation
- Defined in:
- lib/piece_pipe/method_assembly_station.rb
Instance Attribute Summary
Attributes inherited from PipelineElement
Instance Method Summary collapse
-
#initialize(meth) ⇒ MethodAssemblyStation
constructor
A new instance of MethodAssemblyStation.
- #receive(inputs) ⇒ Object
Methods inherited from AssemblyStation
Methods inherited from PipelineElement
Constructor Details
#initialize(meth) ⇒ MethodAssemblyStation
Returns a new instance of MethodAssemblyStation.
3 4 5 |
# File 'lib/piece_pipe/method_assembly_station.rb', line 3 def initialize(meth) @method = meth end |
Instance Method Details
#receive(inputs) ⇒ Object
7 8 9 |
# File 'lib/piece_pipe/method_assembly_station.rb', line 7 def receive(inputs) install(@method.call(inputs)) end |