Last active
December 31, 2015 18:59
-
-
Save smathy/8030411 to your computer and use it in GitHub Desktop.
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
[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)> |
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
[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)> |
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
[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