Class: Object

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

“”, “ ”, nil, [], and {} are blank

Returns:

  • (Boolean)


63
64
65
66
67
68
69
70
71
# File 'lib/awsbase/support.rb', line 63

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