diff options
author | Akira Matsuda <ronnie@dio.jp> | 2011-04-20 06:28:22 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2011-04-20 06:31:56 +0900 |
commit | 1c5d5ad3e96ec742aee815ed33598822f62b6987 (patch) | |
tree | dd423d076997b534d4bf2c52960b4b9ecc7a8d99 /activesupport | |
parent | 356dacbafc8590244d9da7d4d601f7064e461bc7 (diff) | |
download | rails-1c5d5ad3e96ec742aee815ed33598822f62b6987.tar.gz rails-1c5d5ad3e96ec742aee815ed33598822f62b6987.tar.bz2 rails-1c5d5ad3e96ec742aee815ed33598822f62b6987.zip |
NilClass is a singleton
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/try.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/try.rb b/activesupport/lib/active_support/core_ext/object/try.rb index aedf5c8c82..e77a9da0ec 100644 --- a/activesupport/lib/active_support/core_ext/object/try.rb +++ b/activesupport/lib/active_support/core_ext/object/try.rb @@ -35,7 +35,7 @@ class Object end class NilClass - # Instances of +NilClass+ return always +nil+. + # Calling +try+ on +nil+ always returns +nil+. # It becomes specially helpful when navigating through associations that may return +nil+. # # === Examples |