Class: Object

Inherits:
BasicObject
Defined in:
lib/crackoid/core_extensions.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#blank?TrueClass, FalseClass

Returns true if the object is nil or empty (if applicable)

Examples:

[].blank? #=> true

[1].blank? #=> false

[nil].blank? #=> false

Returns:



11
12
13
# File 'lib/crackoid/core_extensions.rb', line 11

def blank?
  nil? || (respond_to?(:empty?) && empty?)
end