diff options
author | Takumasa Ochi <aeroastro007@gmail.com> | 2018-09-06 02:07:11 +0900 |
---|---|---|
committer | Takumasa Ochi <aeroastro007@gmail.com> | 2018-09-06 02:13:39 +0900 |
commit | d309737928cb52deb2bfc2d2342a73d203a68fbd (patch) | |
tree | 816f08e92d8a7291f04494d16696b459f958ebac /activesupport | |
parent | bd932f5d2244185527c57d81ee7b6a7762560ab5 (diff) | |
download | rails-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.rb | 4 |
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 # |