Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/crack/core_extensions.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#blank? ⇒ TrueClass, FalseClass
Returns true if the object is nil or empty (if applicable).
Instance Method Details
#blank? ⇒ TrueClass, FalseClass
Returns true if the object is nil or empty (if applicable)
9 10 11 |
# File 'lib/crack/core_extensions.rb', line 9 def blank? nil? || (respond_to?(:empty?) && empty?) end |