Example
def Object.const_missing(name)
puts self.class
end
class A; end
A::B # => Class
How can I get A
in Object#const_missing
?
Example
def Object.const_missing(name)
puts self.class
end
class A; end
A::B # => Class
How can I get A
in Object#const_missing
?
def Object.const_missing(name)
puts self
end