aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-04-17 19:38:32 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-04-17 19:38:32 -0300
commita48d2a7a070540b60d50b14a201ffeba02e390f8 (patch)
treefdb5dcae734afbed5cbbef541528a649b669a066 /activesupport/lib
parentbd302542d0993a4965c870de607051748b6de0be (diff)
downloadrails-a48d2a7a070540b60d50b14a201ffeba02e390f8.tar.gz
rails-a48d2a7a070540b60d50b14a201ffeba02e390f8.tar.bz2
rails-a48d2a7a070540b60d50b14a201ffeba02e390f8.zip
Documented FalseClass#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 76450a9238..57944bd271 100644
--- a/activesupport/lib/active_support/core_ext/object/blank.rb
+++ b/activesupport/lib/active_support/core_ext/object/blank.rb
@@ -47,7 +47,11 @@ class NilClass
end
end
-class FalseClass #:nodoc:
+class FalseClass
+ # Instances of FalseClass are always blank
+ # Example:
+ #
+ # false.blank? => true
def blank?
true
end