Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyscholar.rb

Instance Method Summary collapse

Instance Method Details

#cleanObject



7
8
9
10
11
# File 'lib/rubyscholar.rb', line 7

def clean
  # removes leading and trailing whitespace, commas
  self.gsub!(/(^[\s,]+)|([\s,]+$)/, '')
  return self
end