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
join « Array « Ruby
Ruby
Array
join
1.
join all the elements together into one big string by calling the join method on the array
2.
join method can take an optional parameter that's placed between each element in the resulting string
3.
use the compact method, which removes all nils from an array.