Class: Nothing

Inherits:
BasicObject
Includes:
Maybe, Singleton
Defined in:
lib/mayhaps.rb

Instance Method Summary collapse

Methods included from Maybe

#maybe

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args) ⇒ Object



50
51
52
# File 'lib/mayhaps.rb', line 50

def method_missing(*args)
  self
end

Instance Method Details

#+@Object



46
47
48
# File 'lib/mayhaps.rb', line 46

def +@
  nil
end

#inspectObject



54
55
56
# File 'lib/mayhaps.rb', line 54

def inspect
  '#<Nothing>'
end