Skip to content

Instantly share code, notes, and snippets.

@indirect
Created March 20, 2010 05:37
Show Gist options
  • Save indirect/338500 to your computer and use it in GitHub Desktop.
Save indirect/338500 to your computer and use it in GitHub Desktop.
a ruby quine
lines = ["puts \"lines = \#{lines.inspect}\"", "lines.each{|l| puts l }"]
puts "lines = #{lines.inspect}"
lines.each{|l| puts l }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment