From: Leslie Viljoen Date: 2008-05-30T05:47:19+09:00 Subject: Re: Surprising Extend 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." What a silly argument!