aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-04-17 19:36:56 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-04-17 19:36:56 -0300
commitbd302542d0993a4965c870de607051748b6de0be (patch)
tree4aa66ed49eb1d5cd3febba23718d786f64cfc7e9 /activesupport/lib
parent38e77879e0c4d908c8f74c2828bbce7c6c543934 (diff)
downloadrails-bd302542d0993a4965c870de607051748b6de0be.tar.gz
rails-bd302542d0993a4965c870de607051748b6de0be.tar.bz2
rails-bd302542d0993a4965c870de607051748b6de0be.zip
Documented NilClass#blank?
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/object/blank.rb6
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