Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/api_ai_wrapper/extensions/object.rb
Overview
Object Override taken from Rails
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
3 4 5 |
# File 'lib/api_ai_wrapper/extensions/object.rb', line 3 def blank? respond_to?(:empty?) ? empty? : !self end |
#presence ⇒ Object
11 12 13 |
# File 'lib/api_ai_wrapper/extensions/object.rb', line 11 def presence self if present? end |
#present? ⇒ Boolean
7 8 9 |
# File 'lib/api_ai_wrapper/extensions/object.rb', line 7 def present? !blank? end |