Skip to content

Instantly share code, notes, and snippets.

@torsten
Created March 20, 2010 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torsten/338740 to your computer and use it in GitHub Desktop.
Save torsten/338740 to your computer and use it in GitHub Desktop.
Try it: ruby quine.rb | ruby | ruby | ruby | ruby | ruby
a,b="a,b=",";puts a+a.inspect+','+b.inspect+b";puts a+a.inspect+','+b.inspect+b
x="x=\nputs x.sub($/,x.inspect+$/)"
puts x.sub($/,x.inspect+$/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment