• Ruby 反射机制常用方法 at 2017年07月16日

    在 java 中 有这样的 api: method=Class.forName("path1.path2.path3...className").newInstance(); method.invoke(obj,args...); 请问在 ruby 中如何实现上述类似的机制:也就是根据 rb 文件路径加载类,并且进行反射调用方法。