Class: Lego::Either::None

Inherits:
Object
  • Object
show all
Includes:
Eitherish
Defined in:
lib/lego/either.rb

Instance Method Summary collapse

Methods included from Eitherish

#error?, #next, #value?

Instance Method Details

#inspectObject



67
68
69
# File 'lib/lego/either.rb', line 67

def inspect
  "<Lego::Either::None>"
end

#none?Boolean

Returns:



63
64
65
# File 'lib/lego/either.rb', line 63

def none?
  true
end