Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/dooby/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
2 3 4 |
# File 'lib/dooby/core_ext.rb', line 2 def blank? respond_to?(:empty?) ? empty? : !self end |
#present? ⇒ Boolean
6 7 8 |
# File 'lib/dooby/core_ext.rb', line 6 def present? !blank? end |