class ReeObject::IsBlank

def call(obj)

def call(obj)
  return is_string_blank?(obj) if obj.is_a?(String)
  return obj.empty? if obj.is_a?(Array) || obj.is_a?(Hash) || obj.is_a?(Set)
  return true if obj.nil?
  return true if obj == false
  return false if obj == true
  false
end

def is_string_blank?(str)

def is_string_blank?(str)
  str.empty? ||
    begin
      BLANK_RE.match?(str)
    rescue Encoding::CompatibilityError
      ENCODED_BLANKS[str.encoding].match?(str)
    end
end