class String

Public Instance Methods

clean() click to toggle source
# File lib/rubyscholar-main.rb, line 7
def clean
  # removes leading and trailing whitespace, commas
  self.gsub!(/(^[\s,]+)|([\s,]+$)/, '')
  return self
end