We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
try
BasicObject
1 parent 0d73d6e commit 6ef9fdaCopy full SHA for 6ef9fda
activesupport/lib/active_support/core_ext/object/try.rb
@@ -7,6 +7,10 @@ class Object
7
#
8
# If try is called without a method to call, it will yield any given block with the object.
9
10
+ # Please also note that +try+ is defined on +Object+, therefore it won't work with
11
+ # subclasses of +BasicObject+. For example, using try with +SimpleDelegator+ will
12
+ # delegate +try+ to target instead of calling it on delegator itself.
13
+ #
14
# ==== Examples
15
16
# Without +try+
0 commit comments