Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.