Method: LX::String#hascontent?
- Defined in:
- lib/lx.rb
#hascontent? ⇒ Boolean
Returns true if the string contains a non-whitespace character.
364 365 366 |
# File 'lib/lx.rb', line 364 def hascontent? return @str.match(/\S/mu) ? true : false end |