aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-04-17 19:39:40 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-04-17 19:39:40 -0300
commitc49799923098b63e906af955dc077cb24caeb659 (patch)
treece0543453f1113c60aadecae6003a0cdb5b2dd2e /activesupport/lib
parenta48d2a7a070540b60d50b14a201ffeba02e390f8 (diff)
downloadrails-c49799923098b63e906af955dc077cb24caeb659.tar.gz
rails-c49799923098b63e906af955dc077cb24caeb659.tar.bz2
rails-c49799923098b63e906af955dc077cb24caeb659.zip
Documented TrueClass#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 57944bd271..764d0666fd 100644
--- a/activesupport/lib/active_support/core_ext/object/blank.rb
+++ b/activesupport/lib/active_support/core_ext/object/blank.rb
@@ -57,7 +57,11 @@ class FalseClass
end
end
-class TrueClass #:nodoc:
+class TrueClass
+ # Instances of TrueClass are never blank
+ # Example:
+ #
+ # true.blank? => false
def blank?
false
end