method
try!
v6.1.7.7 -
Show latest stable
- Class:
ActiveSupport::Tryable
try!(method_name = nil, *args, &b)public
No documentation available.
# File activesupport/lib/active_support/core_ext/object/try.rb, line 20
def try!(method_name = nil, *args, &b)
if method_name.nil? && block_given?
if b.arity == 0
instance_eval(&b)
else
yield self
end
else
public_send(method_name, *args, &b)
end
end