Skip to content

Instantly share code, notes, and snippets.

@nurettin
Created October 2, 2013 07:37
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 nurettin/6790237 to your computer and use it in GitHub Desktop.
Save nurettin/6790237 to your computer and use it in GitHub Desktop.
create_class_otf.rb
x= Class.new Object do
def inspect
"lol!"
end
end
module Lol
end
Object.const_set("Wtf", x)
p Wtf.new
Lol.const_set("Wtf", x)
p Lol::Wtf.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment