Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/ibm_cloud_rest/support/blank.rb
Overview
blank? methods for several different class types
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Returns true if the object is nil or empty (if applicable).
Instance Method Details
#blank? ⇒ Boolean
Returns true if the object is nil or empty (if applicable)
4 5 6 |
# File 'lib/ibm_cloud_rest/support/blank.rb', line 4 def blank? nil? || (respond_to?(:empty?) && empty?) end |