1

例子

def Object.const_missing(name)
  puts self.class
end
class A; end
A::B # => Class

我怎样才能A进去Object#const_missing

4

1 回答 1

2
def Object.const_missing(name)
  puts self
end
于 2010-07-22T22:48:22.293 回答