Class: Object

Inherits:
BasicObject
Defined in:
lib/mms2r.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


57
58
59
60
61
62
63
64
65
# File 'lib/mms2r.rb', line 57

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