9 10 11 12 13 14 15
# File 'lib/deterministic/result.rb', line 9 def try! begin Success.new(yield) rescue => err Failure.new(err) end end