Skip to content

Instantly share code, notes, and snippets.

@eqdw
Created November 4, 2010 21:04
Show Gist options
  • Save eqdw/663186 to your computer and use it in GitHub Desktop.
Save eqdw/663186 to your computer and use it in GitHub Desktop.
scary ruby syntax!
string = [<<ONE, <<TWO, <<THREE]
the first thing
ONE
the second thing
TWO
and the third thing
THREE
# evaluates to:
# ["the first thing", "the second thing", "and the third thing"]
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment