Class: Dry::Effects::Instructions::Raise
- Inherits:
-
Dry::Effects::Instruction
- Object
- Dry::Effects::Instruction
- Dry::Effects::Instructions::Raise
- Defined in:
- lib/dry/effects/instructions/raise.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(error) ⇒ Raise
constructor
A new instance of Raise.
Constructor Details
#initialize(error) ⇒ Raise
Returns a new instance of Raise.
9 10 11 12 |
# File 'lib/dry/effects/instructions/raise.rb', line 9 def initialize(error) super() @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
7 8 9 |
# File 'lib/dry/effects/instructions/raise.rb', line 7 def error @error end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/dry/effects/instructions/raise.rb', line 14 def call raise error end |