Class: Dry::Transaction::Stack Private
- Inherits:
-
Object
- Object
- Dry::Transaction::Stack
- Defined in:
- lib/dry/transaction/stack.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- RETURN =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
-> x { x }
Instance Method Summary collapse
- #call(m) ⇒ Object private
-
#initialize(steps) ⇒ Stack
constructor
private
A new instance of Stack.
Constructor Details
#initialize(steps) ⇒ Stack
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Stack.
9 10 11 |
# File 'lib/dry/transaction/stack.rb', line 9 def initialize(steps) @stack = compile(steps) end |
Instance Method Details
#call(m) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/dry/transaction/stack.rb', line 13 def call(m) @stack.(m) end |