From: "Iñaki Baz Castillo" Date: 2012-05-10T20:25:16+09:00 Subject: Re: How to make a given klass to include a module 2012/5/9 Eric Wong : > Iñaki Baz Castillo wrote: >> NOTE: It must be efficient, I don't want to use eval and so. > > Any time you modify a class/eigenclass (via include/extend), you lose > efficiency in MRI/YARV.  The runtime needs to invalidate its internal > caches for method lookup whenever classes are modified. Good to know. But if the "include" is added during the class definition there is no efficiency loss, am I right?: class A include M end -- Iñaki Baz Castillo