From 88fc7495b9aa0facd3363ace4871118a0905d6c2 Mon Sep 17 00:00:00 2001 From: Oscar Del Ben Date: Sun, 13 May 2012 08:21:06 -0700 Subject: Update docs to public_send for Object#try --- activesupport/lib/active_support/core_ext/object/try.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/core_ext/object/try.rb b/activesupport/lib/active_support/core_ext/object/try.rb index 3e63b1e82a..48eb546a7d 100644 --- a/activesupport/lib/active_support/core_ext/object/try.rb +++ b/activesupport/lib/active_support/core_ext/object/try.rb @@ -1,6 +1,6 @@ class Object # Invokes the public method identified by the symbol +method+, passing it any arguments - # and/or the block specified, just like the regular Ruby Object#send does. + # and/or the block specified, just like the regular Ruby Object#public_send does. # # *Unlike* that method however, a +NoMethodError+ exception will *not* be raised # and +nil+ will be returned instead, if the receiving object is a +nil+ object or NilClass. -- cgit v1.2.3