Robert Dober
9/2/2008 11:59:00 AM
On Tue, Sep 2, 2008 at 12:54 PM, Jos=E9 Ignacio
<joseignacio.fernandez@gmail.com> wrote:
<snip>
> a.extend EnhancedBehaviour
> a.extend EnhancedBehaviour # Nothing happens
That might be a feature or a bug, when pushing behavior dynamically
depending on some events it might be better to push it twice but I am
sure you implemented it how you needed it.
<snip>
> Trouble is that I don't really know what happens in the background in
> Ruby when you use Object.extend.
IIRC
o.extend m
is a shortcut for
class << o; include m end
Cheers
Robert
--=20
C'est v=E9ritablement utile puisque c'est joli.
Antoine de Saint Exup=E9ry