Trans
10/22/2008 7:17:00 PM
On Oct 22, 3:52=A0am, Ittay Dror <ittay.d...@gmail.com> wrote:
> Hi,
>
> How is it possible to extend an object using another object?
>
> I know I can iterate the public methods of one and define them (or maybe
> clone, and bind) in the other, but I'm looking for something that will
> work more closely to how 'extend' works.
You have to use delegation. Look up delegate.rb.
T.