Changeset 9226 for trunk/activesupport/lib/active_support/core_ext/blank.rb
- Timestamp:
- 04/05/08 03:52:58 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/core_ext/blank.rb
r9093 r9226 1 1 class Object 2 2 # An object is blank if it's false, empty, or a whitespace string. 3 # For example, "", " ", nil, [], and {} are blank.3 # For example, "", " ", +nil+, [], and {} are blank. 4 4 # 5 5 # This simplifies 6 # 6 7 # if !address.nil? && !address.empty? 8 # 7 9 # to 10 # 8 11 # if !address.blank? 9 12 def blank?