Same as #try, but will raise a NoMethodError exception if the receiver is not nil and does not implement the tried method.
# File activesupport/lib/active_support/core_ext/object/try.rb, line 69 def try!(*a, &b) if a.empty? && block_given? if b.arity.zero? instance_eval(&b) else yield self end else public_send(*a, &b) end end