Class: Kind::Monad::Wrapper
- Inherits:
-
Object
- Object
- Kind::Monad::Wrapper
- Defined in:
- lib/kind/monad.rb
Direct Known Subclasses
Either::Monad::Wrapper, Kind::Maybe::Monad::Wrapper, Result::Monad::Wrapper
Instance Method Summary collapse
-
#initialize(monad) ⇒ Wrapper
constructor
A new instance of Wrapper.
- #output ⇒ Object
- #output? ⇒ Boolean
Constructor Details
#initialize(monad) ⇒ Wrapper
Returns a new instance of Wrapper.
8 9 10 11 |
# File 'lib/kind/monad.rb', line 8 def initialize(monad) @monad = monad @output = UNDEFINED end |