method
to_s
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
to_s()
public
Alias for Array#inspect
Register or
log in
to add new notes.
joshuapinter -
March 18, 2012
![Default_avatar_30](https://www.gravatar.com/avatar/6e6e22d81a1f4f394f62301be40c2e20?default=http://apidock.com/images/default_avatar_30.png&size=30)
0 thanks
Use Join to Turn Array Items into a String.
If you’re looking to take an array like
[ 'don', 'draper' ]
And get
'don draper'
Then use join instead:
[ 'don', 'draper' ].join( ' ' ) #=> 'don draper'