class String

Used to override and give String the blank? validation similar to Rails

Public Instance Methods

blank?() click to toggle source

Used to determine if the object is nil or empty ('') @return [Boolean]

# File lib/sailpoint/core_ext/blank.rb, line 18
def blank?
  strip&.empty? || strip&.length&.zero?
end
escape_str() click to toggle source

Escape any special characters to make them URL safe @return [String]

# File lib/sailpoint/core_ext/escape_str.rb, line 16
def escape_str
  CGI.escape(strip)
end