Class: Contrails::Process

Inherits:
Object
  • Object
show all
Includes:
Chainable
Defined in:
lib/contrails/process.rb

Instance Method Summary collapse

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