Skip to content

Instantly share code, notes, and snippets.

@jacksonwillis
Created November 21, 2011 09:32
Show Gist options
  • Save jacksonwillis/1382141 to your computer and use it in GitHub Desktop.
Save jacksonwillis/1382141 to your computer and use it in GitHub Desktop.
Super Hello World (ruby metaprogramming)
class Hello
def method_missing(m, *a)
print m.to_s + a.join(" ")
self
end
end
Hello.new.H.e.l.l.o(", ").w.o.r.l.d!("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment