method

try

v3.0.0 - Show latest stable - Class: NilClass
try(*args)
public

No documentation available.

# File activesupport/lib/active_support/core_ext/object/try.rb, line 33
  def try(*args)
    nil
  end

1Note

rest of code is in Object#try

roryokane · Jul 24, 20121 thank

The logic for #try is shared between this method and Object#try – “Show source” here doesn’t show the whole story. Both methods are currently implemented in the file activesupport/lib/active_support/core_ext/object/try.rb .