Class: Contrails::Process
- Inherits:
-
Object
- Object
- Contrails::Process
- Includes:
- Chainable
- Defined in:
- lib/contrails/process.rb
Instance Method Summary collapse
-
#initialize(&l) ⇒ Process
constructor
A new instance of Process.
- #run(*a) ⇒ Object
Methods included from Chainable
#*, #>>, #bind, #call, #distribute, included, #to_proc
Constructor Details
#initialize(&l) ⇒ Process
Returns a new instance of Process.
6 7 8 |
# File 'lib/contrails/process.rb', line 6 def initialize(&l) @lambda = l end |
Instance Method Details
#run(*a) ⇒ Object
10 11 12 |
# File 'lib/contrails/process.rb', line 10 def run(*a) @lambda.call(*a) end |