Skip to content

Instantly share code, notes, and snippets.

@smathy
Last active December 31, 2015 18:59
Show Gist options
  • Save smathy/8030411 to your computer and use it in GitHub Desktop.
Save smathy/8030411 to your computer and use it in GitHub Desktop.
[4] pry(main)> x = 'foo'
=> "foo"
[5] pry(main)> <<-'X'
[5] pry(main)* No interpolation of #{x}
[5] pry(main)* X
=> " No interpolation of \#{x}\n"
[6] pry(main)> <<-"X"
[6] pry(main)* Interpolates #{x}
[6] pry(main)* X
=> " Interpolates foo\n"
[7] pry(main)>
[7] pry(main)> <<-X
[7] pry(main)* FWIW, no quotes means doubles: #{x}
[7] pry(main)* X
=> " FWIW, no quotes means doubles: foo\n"
[8] pry(main)>
[3] pry(main)> <<-"CODE"
[3] pry(main)* This code itself? No explosion see: """"""""""""""""""""""""""""
[3] pry(main)* CODE
=> " This code itself? No explosion see: \"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n"
[4] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment