Skip to content

Instantly share code, notes, and snippets.

@jasonyost
Created February 3, 2015 21:24
Show Gist options
  • Save jasonyost/ceb86c8ce5c83633f8e0 to your computer and use it in GitHub Desktop.
Save jasonyost/ceb86c8ce5c83633f8e0 to your computer and use it in GitHub Desktop.
Ruby explode string into chracter array
"Hello, world!".split(//)
#=> ["H", "e", "l", "l", "o", ",", " ", "w", "o", "r", "l", "d", "!"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment