Created
March 25, 2010 13:07
-
-
Save metavida/343529 to your computer and use it in GitHub Desktop.
My very first ruby quine. Escaping in multi-line quines is a pain!
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
quine = <<QUINE | |
puts "quine = <<QUINE\\n" + quine.gsub('\\\\', '\\\\\\\\\\\\') + "QUINE\\n" + quine | |
QUINE | |
puts "quine = <<QUINE\n" + quine.gsub('\\', '\\\\\\') + "QUINE\n" + quine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment