Class: Dry::Monads::Try
- Inherits:
-
Object
- Object
- Dry::Monads::Try
- Defined in:
- lib/dry/monads/try.rb
Defined Under Namespace
Modules: Mixin Classes: Failure, Success
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
4 5 6 |
# File 'lib/dry/monads/try.rb', line 4 def exception @exception end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/dry/monads/try.rb', line 4 def value @value end |