Created
October 2, 2013 07:37
-
-
Save nurettin/6790237 to your computer and use it in GitHub Desktop.
create_class_otf.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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