code: public static void defineAnnotatedMethods(RubyClass rubyClass, Class<?> proxyClass) {
          Class<?> currentClass = proxyClass;
          while (currentClass != RubyObject.class) {
              rubyClass.defineAnnotatedMethods(currentClass);
              currentClass = currentClass.getSuperclass();
          }
      }
docs: Defines the annotated methods of the given class and all super classes as
  {@link org.jruby.RubyClass#defineAnnotatedMethods(Class)} does not handle inherited methods.
  @param rubyClass
  @param proxyClass