class Kind::Monad::Wrapper

Public Class Methods

new(monad) click to toggle source
# File lib/kind/monad.rb, line 8
def initialize(monad)
  @monad = monad
  @output = UNDEFINED
end

Public Instance Methods

output() click to toggle source
# File lib/kind/monad.rb, line 17
def output
  @output if output?
end
output?() click to toggle source
# File lib/kind/monad.rb, line 13
def output?
  UNDEFINED != @output
end