>>>>> "F" == Florian Frank <flori / nixe.ping.de> writes:

F> Mixin1 = A.mixin(:foo)
F> class B
F> 	include Mixin1
F> end
F> p B.new.foo

 Try this

   Mixin1 = Array.mixin(:[]=)
   class B
      include Mixin1
   end
   a = B.new
   a[12] = 24
   p a


Guy Decoux