class Rammed::Monad::MaybeConstructors::None

Public Instance Methods

==(other) click to toggle source
# File lib/monad/maybe.rb, line 52
def ==(other)
  other.respond_to?(:none?) && other.none?
end
bind(_) click to toggle source
# File lib/monad/maybe.rb, line 48
def bind(_)
  self
end
just?() click to toggle source
# File lib/monad/maybe.rb, line 40
def just?
  false
end
none?() click to toggle source
# File lib/monad/maybe.rb, line 44
def none?
  true
end