标签: ruby class object class-method
实施例
def Object.const_missing(name) puts self.class end class A; end A::B # => Class
如何在A中获取Object#const_missing?
A
Object#const_missing
答案 0 :(得分:2)
def Object.const_missing(name) puts self end