Created
November 4, 2010 21:04
-
-
Save eqdw/663186 to your computer and use it in GitHub Desktop.
scary ruby syntax!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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