From: David Masover Date: 2008-05-30T01:22:24+09:00 Subject: Re: Surprising Extend 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.