Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
removing duplicates : squeeze « String « Ruby
Ruby
String
squeeze
removing duplicates
"hello"
.squeeze(
'a-z'
) # =>
"helo"
: remove runs of letters. Also squeeze!
Related examples in the same category