Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例子
def Object.const_missing(name) puts self.class end class A; end A::B # => Class
我怎样才能A进去Object#const_missing?
A
Object#const_missing
def Object.const_missing(name) puts self end