Exception: Dry::Effects::Halt
- Inherits:
-
StandardError
- Object
- StandardError
- Dry::Effects::Halt
- Extended by:
- Core::ClassAttributes
- Defined in:
- lib/dry/effects/halt.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(payload = Undefined) ⇒ Halt
constructor
A new instance of Halt.
Constructor Details
#initialize(payload = Undefined) ⇒ Halt
Returns a new instance of Halt.
21 22 23 24 |
# File 'lib/dry/effects/halt.rb', line 21 def initialize(payload = Undefined) super(EMPTY_STRING) @payload = payload end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
19 20 21 |
# File 'lib/dry/effects/halt.rb', line 19 def payload @payload end |