class Either::Left

Public Instance Methods

left() click to toggle source
# File lib/trither/either.rb, line 29
def left
  @value
end
left?() click to toggle source
# File lib/trither/either.rb, line 19
def left?
  true
end
left_flat_map() { |value| ... } click to toggle source
# File lib/trither/either.rb, line 44
def left_flat_map
  yield @value
end
left_map() { |value)| ... } click to toggle source
# File lib/trither/either.rb, line 34
def left_map
  Left.new(yield @value)
end
right?() click to toggle source
# File lib/trither/either.rb, line 24
def right?
  false
end
right_flat_map() click to toggle source
# File lib/trither/either.rb, line 49
def right_flat_map
  self
end
right_map() click to toggle source
# File lib/trither/either.rb, line 39
def right_map
  self
end