Class: Terrestrial::FunctionalPipeline::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/terrestrial/functional_pipeline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, func) ⇒ Step

Returns a new instance of Step.



52
53
54
55
# File 'lib/terrestrial/functional_pipeline.rb', line 52

def initialize(name, func)
  @name = name
  @func = func
end

Instance Attribute Details

#funcObject (readonly)

Returns the value of attribute func.



57
58
59
# File 'lib/terrestrial/functional_pipeline.rb', line 57

def func
  @func
end

#nameObject (readonly)

Returns the value of attribute name.



57
58
59
# File 'lib/terrestrial/functional_pipeline.rb', line 57

def name
  @name
end

Instance Method Details

#call(*args, &block) ⇒ Object



59
60
61
# File 'lib/terrestrial/functional_pipeline.rb', line 59

def call(*args, &block)
  func.call(*args, &block)
end