Class: Monadt::Maybe::Nothing

Inherits:
Object
  • Object
show all
Defined in:
lib/monadt/maybe.rb

Instance Method Summary collapse

Instance Method Details

#is_nothing?Boolean

Returns:

  • (Boolean)


14
# File 'lib/monadt/maybe.rb', line 14

def is_nothing?() true end

#to_sObject



15
# File 'lib/monadt/maybe.rb', line 15

def to_s() "Nothing" end