module Try

Constants

Func0toTry
Func1toTry
TryType

Public Class Methods

make() { || ... } click to toggle source
# File lib/trither/try.rb, line 18
def self.make
  Success.new(yield)
rescue StandardError => error
  Failure.new(error)
end