class Object

Public Instance Methods

maybe() click to toggle source
# File lib/mayhaps.rb, line 4
def maybe
  if nil?
    Nothing.instance
  else
    Just.new(self)
  end
end