Class: Object

Inherits:
BasicObject
Defined in:
lib/awsbase/support.rb

Overview

:nodoc:

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) blank?

"", " ", nil, [], and {} are blank

Returns:

  • (Boolean)


59
60
61
62
63
64
65
66
67
# File 'lib/awsbase/support.rb', line 59

def blank?
  if respond_to?(:empty?) && respond_to?(:strip)
    empty? or strip.empty?
  elsif respond_to?(:empty?)
    empty?
  else
    !self
  end
end