Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/blank.rb
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Objects are blank if they respond true to empty?.
Instance Method Details
#blank? ⇒ Boolean
Objects are blank if they respond true to empty?
28 29 30 |
# File 'lib/blank.rb', line 28 def blank? respond_to?(:empty?) && empty? end |