method
try
v5.2.3 -
Show latest stable
- Class:
ActiveSupport::Tryable
try(*a, &b)public
No documentation available.
# File activesupport/lib/active_support/core_ext/object/try.rb, line 7
def try(*a, &b)
try!(*a, &b) if a.empty? || respond_to?(a.first)
end