示例
def Object.const_missing(name) puts self.class end class A; end A::B # => Class
如何在Object#const_missing中获取A
Object#const_missing
A
发布于 2010-07-23 06:48:22
def Object.const_missing(name) puts self end
https://stackoverflow.com/questions/3314108
相似问题