Class: String

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

Constant Summary collapse

BLANK_RE =
/\A[[:space:]]*\z/.freeze

Instance Method Summary collapse

Instance Method Details

#blank?Boolean



6
7
8
# File 'lib/core_ext/string.rb', line 6

def blank?
  BLANK_RE.match(self)
end