Skip to content

Instantly share code, notes, and snippets.

@jasondew
Created July 15, 2010 19:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jasondew/477363 to your computer and use it in GitHub Desktop.
Save jasondew/477363 to your computer and use it in GitHub Desktop.
puts 'require "quine"'
module Kernel
def method_missing name, *args
print name
metaclass = class << (o = Object.new); self; end
metaclass.send(:define_method, :method_missing) do |name, *args|
print ".#{name}"
self
end
o
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment