Skip to content
This repository
Browse code

Update docs to public_send for Object#try

  • Loading branch information...
commit 88fc7495b9aa0facd3363ace4871118a0905d6c2 1 parent a7e0b2f
Oscar Del Ben oscardelben authored
2  activesupport/lib/active_support/core_ext/object/try.rb
... ... @@ -1,6 +1,6 @@
1 1 class Object
2 2 # Invokes the public method identified by the symbol +method+, passing it any arguments
3   - # and/or the block specified, just like the regular Ruby <tt>Object#send</tt> does.
  3 + # and/or the block specified, just like the regular Ruby <tt>Object#public_send</tt> does.
4 4 #
5 5 # *Unlike* that method however, a +NoMethodError+ exception will *not* be raised
6 6 # and +nil+ will be returned instead, if the receiving object is a +nil+ object or NilClass.

0 comments on commit 88fc749

Please sign in to comment.
Something went wrong with that request. Please try again.