• Object 定义的方法求解答 at 2014年12月27日

    Object 的类是 Class,Class 的父类是 Object。do_it 从 Object 传递到了 Class,成为类对象的方法。 你加一句 class A; end A.do_it 是不是也显示 do it?