class Try::Failure
Public Instance Methods
fail_map() { |value| ... }
click to toggle source
# File lib/trither/try.rb, line 48 def fail_map Failure.new yield(@value) end
failure?()
click to toggle source
# File lib/trither/try.rb, line 28 def failure? true end
filter()
click to toggle source
# File lib/trither/try.rb, line 33 def filter self end
flat_map()
click to toggle source
# File lib/trither/try.rb, line 38 def flat_map self end
get_or_else() { |value| ... }
click to toggle source
# File lib/trither/try.rb, line 58 def get_or_else yield @value end
map()
click to toggle source
# File lib/trither/try.rb, line 43 def map self end
or_else() { |value| ... }
click to toggle source
# File lib/trither/try.rb, line 53 def or_else yield @value end