module Mon::Monad::ChainableMonad

Public Instance Methods

_() click to toggle source
# File lib/monads/chainable_monad.rb, line 14
def _
  self.unwrap
end
coerce(other) click to toggle source
# File lib/monads/chainable_monad.rb, line 18
def coerce(other)
  return self, other
end
method_missing(name, *args, &fun) click to toggle source
# File lib/monads/chainable_monad.rb, line 6
def method_missing(name, *args, &fun)
  self.bind { |o| o.send(name, *args, &fun) }
end
respond_to?(name) click to toggle source
# File lib/monads/chainable_monad.rb, line 10
def respond_to? name
  self._canBind?(name)
end