--- "Frykholm, Niklas" <nfrykholm / rsasecurity.com> wrote:
> 	self.class.new(self.gsub /\d/,'')
(snip)
> Your class, HoX should be as polite, that is why
> delete_digits should use self.class.new rather than 
> HoX.new, it makes it possible for someone to create a 
> subclass of HoX and chain the method calls.

Nice bit about new--I hadn't thought of that. But wouldn't
this be the same (and slightly simpler)?

  self.class.new(gsub /\d/,'')

Or perhaps (I don't have Ruby in front of me) this:

  class.new(gsub /\d/,'')

Kevin

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/