Created
April 19, 2016 13:05
-
-
Save hkdsun/4de1048e43baa2fcab4ee8b19f314105 to your computer and use it in GitHub Desktop.
ruby heredoc/multiline string with space and newlines stripped
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
warn(<<-EOF.gsub(/^\s+/, '').gsub(/\n/, ' ')) | |
xxxxxxxxxxxxxxxxxxxxx | |
#xxxxxxxxx | |
xxxx xxxx xxxx xxxx | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment