@RubyLevelMethod(name = "method") public static RubyValue objMethod(RubyValue receiver, RubyValue arg) { String method_name = arg.toStr(); RubyID mid = RubyID.intern(method_name); RubyMethod m = receiver.findMethod(mid); if (null == m) { throw new RubyException( RubyRuntime.NameErrorClass, "public method '" + method_name + "' can not be found in '" + receiver.getRubyClass().getName() + "'"); } return ObjectFactory.createMethod(receiver, method_name, m); }