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)


66
67
68
69
70
71
72
73
74
# File 'lib/awsbase/support.rb', line 66

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