class String
Constants
- BLANK_RE
Public Instance Methods
blank?()
click to toggle source
A string is blank if it’s empty or contains whitespaces only:
”.blank? # => true ‘ ’.blank? # => true “tnr”.blank? # => true ‘ blah ’.blank? # => false
Unicode whitespace is supported:
“u00a0”.blank? # => true
@return [true, false]
# File vendor/gems/process_manager/lib/blank.rb, line 138 def blank? BLANK_RE === self end
demodulize()
click to toggle source
# File lib/core_ext.rb, line 53 def demodulize path = self.to_s if i = path.rindex('::') path[(i+2)..-1] else path end end