Class: Nothing

Inherits:
Maybe show all
Defined in:
lib/ruby-maybe.rb

Instance Method Summary collapse

Instance Method Details

#==(object) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/ruby-maybe.rb', line 38

def ==(object)
  if object.class == Nothing
    true
  else
    false
  end
end

#bind ⇒ Object



34
35
36
# File 'lib/ruby-maybe.rb', line 34

def bind
  Nothing.new
end