aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorTakumasa Ochi <aeroastro007@gmail.com>2018-09-06 02:07:11 +0900
committerTakumasa Ochi <aeroastro007@gmail.com>2018-09-06 02:13:39 +0900
commitd309737928cb52deb2bfc2d2342a73d203a68fbd (patch)
tree816f08e92d8a7291f04494d16696b459f958ebac /activesupport
parentbd932f5d2244185527c57d81ee7b6a7762560ab5 (diff)
downloadrails-d309737928cb52deb2bfc2d2342a73d203a68fbd.tar.gz
rails-d309737928cb52deb2bfc2d2342a73d203a68fbd.tar.bz2
rails-d309737928cb52deb2bfc2d2342a73d203a68fbd.zip
Improve API document on Object#blank?
* Introduce `falsey` to represent both `nil` and `false`. * Keep consistent order between abstract description and examples.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/object/blank.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb
index ad6a9c6146..027c824b24 100644
--- a/activesupport/lib/active_support/core_ext/object/blank.rb
+++ b/activesupport/lib/active_support/core_ext/object/blank.rb
@@ -3,8 +3,8 @@
require "concurrent/map"
class Object
- # An object is blank if it's false, empty, or a whitespace string.
- # For example, +false+, '', ' ', +nil+, [], and {} are all blank.
+ # An object is blank if it's falsey, empty, or a whitespace string.
+ # For example, +nil+, +false+, [], {}, '', and ' ' are all blank.
#
# This simplifies
#