Class: String

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

Instance Method Summary collapse

Instance Method Details

#trimObject



4
5
6
# File 'lib/trimmy.rb', line 4

def trim
  self.gsub(/\s+/, "")
end