diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-17 19:36:56 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-17 19:36:56 -0300 |
commit | bd302542d0993a4965c870de607051748b6de0be (patch) | |
tree | 4aa66ed49eb1d5cd3febba23718d786f64cfc7e9 /activesupport | |
parent | 38e77879e0c4d908c8f74c2828bbce7c6c543934 (diff) | |
download | rails-bd302542d0993a4965c870de607051748b6de0be.tar.gz rails-bd302542d0993a4965c870de607051748b6de0be.tar.bz2 rails-bd302542d0993a4965c870de607051748b6de0be.zip |
Documented NilClass#blank?
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/blank.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb index d0c1ea8326..76450a9238 100644 --- a/activesupport/lib/active_support/core_ext/object/blank.rb +++ b/activesupport/lib/active_support/core_ext/object/blank.rb @@ -37,7 +37,11 @@ class Object end end -class NilClass #:nodoc: +class NilClass + # Instances of NilClass are always blank + # Example: + # + # nil.blank? => true def blank? true end |