Class: Teckel::Chain::Step

Inherits:
Struct
  • Object
show all
Defined in:
lib/teckel/chain/step.rb

Overview

Internal wrapper of a step definition

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/teckel/chain/step.rb', line 6

def name
  @name
end

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



6
7
8
# File 'lib/teckel/chain/step.rb', line 6

def operation
  @operation
end

Instance Method Details

#finalize!Object



7
8
9
10
11
# File 'lib/teckel/chain/step.rb', line 7

def finalize!
  name.freeze
  operation.finalize!
  freeze
end

#with(settings) ⇒ Object



13
14
15
# File 'lib/teckel/chain/step.rb', line 13

def with(settings)
  self.class.new(name, operation.with(settings))
end