Class: String

Inherits:
Object show all
Defined in:
lib/bright/helpers/blank_helper.rb

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/bright/helpers/blank_helper.rb', line 44

def blank?
  BLANK_RE === self
end