Class: Dry::Transaction::StepFailure
- Inherits:
- BasicObject
- Defined in:
- lib/dry/transaction/step_failure.rb
Instance Attribute Summary collapse
-
#__step_name ⇒ Object
readonly
Returns the value of attribute __step_name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(step_name, object) ⇒ StepFailure
constructor
A new instance of StepFailure.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize(step_name, object) ⇒ StepFailure
Returns a new instance of StepFailure.
6 7 8 9 |
# File 'lib/dry/transaction/step_failure.rb', line 6 def initialize(step_name, object) @__step_name = step_name @__object = object end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
11 12 13 |
# File 'lib/dry/transaction/step_failure.rb', line 11 def method_missing(name, *args, &block) @__object.send(name, *args, &block) end |
Instance Attribute Details
#__step_name ⇒ Object (readonly)
Returns the value of attribute __step_name.
4 5 6 |
# File 'lib/dry/transaction/step_failure.rb', line 4 def __step_name @__step_name end |
Instance Method Details
#==(other) ⇒ Object
15 16 17 |
# File 'lib/dry/transaction/step_failure.rb', line 15 def ==(other) @__object == other end |