Class: Object::String
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
11 12 13 |
# File 'lib/lobbyliste/core_ext/string.rb', line 11 def blank? empty? || /\A[[:space:]]*\z/ === self end |
#squish ⇒ Object
7 8 9 |
# File 'lib/lobbyliste/core_ext/string.rb', line 7 def squish self.dup.gsub(/[[:space:]]+/, ' ').strip end |