Class: Monadt::Either::Left

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

Instance Method Summary collapse

Instance Method Details

#is_left?Boolean

Returns:

  • (Boolean)


9
# File 'lib/monadt/either.rb', line 9

def is_left?() true end

#is_right?Boolean

Returns:

  • (Boolean)


10
# File 'lib/monadt/either.rb', line 10

def is_right?() false end

#to_sObject



11
# File 'lib/monadt/either.rb', line 11

def to_s() "Left(#{left})" end