Class: Object

Inherits:
BasicObject
Defined in:
lib/support.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#right_blank?Boolean

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

Returns:

  • (Boolean)


54
55
56
57
58
59
60
61
62
# File 'lib/support.rb', line 54

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