Created
May 8, 2014 01:58
-
-
Save tshddx/441de4bfa6c7cd8eebf2 to your computer and use it in GitHub Desktop.
ruby heredoc
This file contains 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
irb(main):010:0> puts(<<X, <<Y) | |
irb(main):011:1" this is x | |
irb(main):012:1" X | |
irb(main):013:1" this is y | |
irb(main):014:1" Y | |
this is x | |
this is y | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment