2 ms·
> It is not extending String. It is extending a specific instance of String, and thus not even touching the String class, but the eigenclass of the object: Who
by steveklabnik 13y ago
> It is not extending String. It is extending a specific instance of String, and thus not even touching the String class, but the eigenclass of the object:
Whoops!
module ContentTyped
def self.inherited(base)
String.instance_eval do
def lol
"lol"
end
end
end
end