Class: Consequence::Nothing

Inherits:
NullMonad show all
Defined in:
lib/consequence/something.rb

Instance Attribute Summary

Attributes inherited from Monad

#value

Instance Method Summary collapse

Methods inherited from NullMonad

#<<, #>>

Methods inherited from Monad

#<<, #==, #>>, [], #initialize, #inspect, #to_s

Constructor Details

This class inherits a constructor from Consequence::Monad

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


12
# File 'lib/consequence/something.rb', line 12

def nil?; true end