Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/string.rb

Constant Summary collapse

BLANK_REGEX =
/\A[[:space:]]*\z/

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/core_ext/string.rb', line 4

def blank?
  return BLANK_REGEX === self
end