(1)

 module M
    def M.append_features( a )
      print "--- #{a.v} ---\r\n"
      super
   end
 end

 class A
    def v
       "ok"
    end
    include M
 end

What is equivalent C code?

(2)

 class B
    def B.inherited( a )
       print "--- #{a.v} ---\r\n"
    end
 end

 class C < B
    def C.v
       'ok'
    end
 end

Would raise an exception, because "C.v" had not been defined at the
moment "B.inherited" had been called.
Maybe define smth like "include" for deriving form classes:

 class D
    def D.v
      'ok'
    end
   inherit B
 end

But this would allow

 class E
    inherit F
    inherit G
 end

Will this be a problem?

 ded_pihto