Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/cloudinary/missing.rb
Instance Method Summary collapse
- #blank? ⇒ Boolean
- #presence ⇒ Object
-
#present? ⇒ true, false
An object is present if it’s not blank.
Instance Method Details
#blank? ⇒ Boolean
3 4 5 |
# File 'lib/cloudinary/missing.rb', line 3 def blank? respond_to?(:empty?) ? empty? : !self end |
#presence ⇒ Object
14 15 16 |
# File 'lib/cloudinary/missing.rb', line 14 def presence self if present? end |
#present? ⇒ true, false
An object is present if it’s not blank.
10 11 12 |
# File 'lib/cloudinary/missing.rb', line 10 def present? !blank? end |