method
try!
rails latest stable - Class:
Object
try!public
Same as #try, but raises a NoMethodError exception if the receiver is not nil and does not implement the tried method.
"a".try!(:upcase) # => "A" nil.try!(:upcase) # => nil 123.try!(:upcase) # => NoMethodError: undefined method `upcase' for 123:Integer