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
From a String to an Array : Convert to Array « String « Ruby
Ruby
String
Convert to Array
From a String to an Array
split converts a string to an array. puts
"0123456789"
.split
Related examples in the same category
1.
splitting up all the individual values and converting them into elements
2.
regular expression matches a comma and a space (/, /)