Class: Monadt::Either::Right

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

Instance Method Summary collapse

Instance Method Details

#is_left?Boolean

Returns:

  • (Boolean)


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

def is_left?() false end

#is_right?Boolean

Returns:

  • (Boolean)


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

def is_right?() true end

#to_sObject



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

def to_s() "Right(#{right})" end