Module: CircuitApi::Utils::Object
- Defined in:
- lib/circuit_api/utils/object.rb
Class Method Summary collapse
Class Method Details
.blank?(object) ⇒ Boolean
4 5 6 |
# File 'lib/circuit_api/utils/object.rb', line 4 def self.blank?(object) object.respond_to?(:empty?) ? !!object.empty? : !object end |
.present?(object) ⇒ Boolean
8 9 10 |
# File 'lib/circuit_api/utils/object.rb', line 8 def self.present?(object) !blank?(object) end |