1
def Object.const_missing(name)
puts self.class
end
class A; end
A::B # => Class
Comment puis-je obtenir A
dans Object#const_missing
?
def Object.const_missing(name)
puts self.class
end
class A; end
A::B # => Class
Comment puis-je obtenir A
dans Object#const_missing
?
def Object.const_missing(name)
puts self
end
Hehe, embarrassant ... Merci! – Andrei