Skip to content

Instantly share code, notes, and snippets.

@dmerrick
Created May 29, 2009 22:09
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 dmerrick/120242 to your computer and use it in GitHub Desktop.
Save dmerrick/120242 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby -wKU
# Ruby Quiz #207: Quine
# This week's quiz is to create a quine[1], that is: a program which
# receives no input and produces a copy of its own source code as its
# only output.
# [1]: http://en.wikipedia.org/wiki/Quine_(computing)
# Dana Merrick
# 5/29/2009
File.read($0).each { |l| puts l }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment