aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-04-19 20:51:24 +0200
committerXavier Noria <fxn@hashref.com>2011-04-19 21:00:15 +0200
commit571b4a2a91fcfb46166349c148326d38999a0d7d (patch)
tree0832ce7f19359924c83ce2d804a6f948f085b7fb /activesupport
parent3265516c50abe2b6946fc724fa50c1cf522126d3 (diff)
downloadrails-571b4a2a91fcfb46166349c148326d38999a0d7d.tar.gz
rails-571b4a2a91fcfb46166349c148326d38999a0d7d.tar.bz2
rails-571b4a2a91fcfb46166349c148326d38999a0d7d.zip
Revert "Formated docs"
Reason: "To be blank" and "to be empty" belongs to our everyday terminology, they go in regular font. This reverts commit 280a8709923d2bf707ec4d82ac1e5cb14941da3d.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/object/blank.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb
index 6d14a6dce1..b92277f427 100644
--- a/activesupport/lib/active_support/core_ext/object/blank.rb
+++ b/activesupport/lib/active_support/core_ext/object/blank.rb
@@ -1,6 +1,6 @@
class Object
- # An object is +blank+ if it's false, empty, or a whitespace string.
- # For example, "", " ", +nil+, [], and {} are +blank+.
+ # An object is blank if it's false, empty, or a whitespace string.
+ # For example, "", " ", +nil+, [], and {} are blank.
#
# This simplifies:
#
@@ -18,7 +18,7 @@ class Object
!blank?
end
- # Returns object if it's <tt>present?</tt> otherwise returns nil.
+ # Returns object if it's #present? otherwise returns nil.
# object.presence is equivalent to object.present? ? object : nil.
#
# This is handy for any representation of objects where blank is the same
@@ -38,7 +38,7 @@ class Object
end
class NilClass
- # Instances of +NilClass+ are always +blank+.
+ # Instances of NilClass are always blank
#
# === Example
#
@@ -49,7 +49,7 @@ class NilClass
end
class FalseClass
- # Instances of +FalseClass+ are always +blank+.
+ # Instances of FalseClass are always blank
#
# === Example
#
@@ -60,7 +60,7 @@ class FalseClass
end
class TrueClass
- # Instances of +TrueClass+ are never +blank+.
+ # Instances of TrueClass are never blank
#
# === Example
#
@@ -71,7 +71,7 @@ class TrueClass
end
class Array
- # An array is +blank+ if it's +empty+.
+ # An array is blank if it's empty
#
# === Examples
#
@@ -81,7 +81,7 @@ class Array
end
class Hash
- # A hash is +blank+ if it's +empty+.
+ # A hash is blank if it's empty
#
# === Examples
#
@@ -91,7 +91,7 @@ class Hash
end
class String
- # A string is +blank+ if it's empty or contains whitespaces only.
+ # A string is blank if it's empty or contains whitespaces only
#
# === Examples
#