Class: String
Constant Summary collapse
- NON_WHITESPACE_REGEXP =
0x3000: fullwidth whitespace
/[^\s#{[0x3000].pack("U")}]/
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
23 24 25 |
# File 'lib/core_ext/blank.rb', line 23 def blank? self !~ NON_WHITESPACE_REGEXP end |