Skip to content

Instantly share code, notes, and snippets.

@matthewd
Created May 16, 2011 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewd/974867 to your computer and use it in GitHub Desktop.
Save matthewd/974867 to your computer and use it in GitHub Desktop.
puts(
# Variations:
# - use single quotes on 'AA...'
# - use single quotes on '222..'
"000" + <<"AA\n#{x}\" + "111" + <<BB + "222\
333
444#{<<CC + "555" + <<-DD}666
777
CC
CC
888
DD
999
AA\n#{x}\
aaa
BB
bbb"
)
000333
444777
CC
555888
666
999
111aaa
222bbb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment