From: Leslie Viljoen Date: 2008-05-30T22:22:52+09:00 Subject: Re: Surprising Extend On Fri, May 30, 2008 at 8:24 AM, Robert Klemme wrote: > On 29.05.2008 22:47, Leslie Viljoen wrote: >> >> On Thu, May 29, 2008 at 10:20 PM, Robert Klemme >> wrote: >>> >>> On 29.05.2008 21:02, Leslie Viljoen wrote: >>>> >>>> On Thu, May 29, 2008 at 6:22 PM, David Masover >>>> wrote: >>>>> >>>>> On Thursday 29 May 2008 10:56:47 Leslie Viljoen wrote: >>>>>> >>>>>> On Thu, May 29, 2008 at 5:45 PM, David Masover >>>>>> wrote: >>>>>>> >>>>>>> But your _first_ approach should work. In StringExt.rb: >>>>>> >>>>>> Oh ok. And then I can use 'extend' when I want to extend an instance. >>>>>> Thanks! >>>>> >>>>> actually, no. What I wrote modifies the String class, so all instances >>>>> of >>>>> String have a working to_hex. You don't have to do anything more than >>>>> require >>>>> the file. >>>> >>>> Yes, that's what I said! >>> >>> Actually, no (see above). :-) >> >> My response was "Oh ok." > > And you continued "and _then_ I can use extend when I wan to extend an > instance" - but if the presented approach was followed there was no module > you could use for extend. > > Maybe you meant "and I have to define a module and can use extend when I wan > to extend an instance" but that was not at all clear (at least to me). Oh I see, thanks for that. >> What a silly argument! > > As far as I know the charter of the group does not prohibit silliness. > Sometimes the most fun comes from silliness. :-) And Chunky bacon to you sir!