From: Yehuda Katz Date: 2009-08-31T16:37:35+09:00 Subject: [ruby-core:25215] Re: Module#prepend and Array#prepend --000feaef69545f764704726b1b1c Content-Type: text/plain; charset=ISO-8859-1 On Sun, Aug 30, 2009 at 10:09 PM, Joel VanderWerf wrote: > Yehuda Katz wrote: > >> class Person >> prepend Exclaimer >> end >> > > Is there some way to make the relationship more visually obvious? > > class Person > Exclaimer > end > > class Person > self >> Exclaimer > end > Hmmm... seems potentially a bit visually confusing. I'm happy with prepend, in particular if we also make prepend a method on Array. -- Yehuda > > Whatever you call it, I like the idea--it beats extending each instance > with the module. > > -- > vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 > > -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 --000feaef69545f764704726b1b1c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sun, Aug 30, 2009 at 10:09 PM, Joel V= anderWerf <= vjoel@path.berkeley.edu> wrote:
Yehuda Katz wrote:
class Person
=A0prepend Exclaimer
end

Is there some way to make the relationship more visually obvious?

class Person > Exclaimer
end

class Person
=A0self >> Exclaimer
end

Hmmm... seems potentially=A0a bit= =A0visually confusing. I'm happy with prepend, in particular if we also= make prepend a method on Array.

-- Yehuda

=A0

Whatever you call it, I like the idea--it beats extending each instance wit= h the module.

--
=A0 =A0 =A0vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407




--
Yehuda Katz
D= eveloper | Engine Yard
(ph) 718.877.1325
--000feaef69545f764704726b1b1c--