class Kind::Either::Left
Public Instance Methods
inspect()
click to toggle source
# File lib/kind/either/left.rb, line 25 def inspect '#<%s value=%p>' % ['Kind::Left', value] end
left?()
click to toggle source
# File lib/kind/either/left.rb, line 5 def left? true end
map(&_)
click to toggle source
# File lib/kind/either/left.rb, line 15 def map(&_) self end
value_or(default = UNDEFINED, &block)
click to toggle source
# File lib/kind/either/left.rb, line 9 def value_or(default = UNDEFINED, &block) Error.invalid_default_arg! if UNDEFINED == default && !block UNDEFINED != default ? default : block.call(value) end