From: Paul Mckibbin Date: 2008-03-12T07:08:30+09:00 Subject: Re: whats the error here? Adam Akhtar wrote: > > > Anyone got any ideas????? @template is a hash, and you are attempting to retrieve the size of a 0 indexed item as opposed to '0'. That's the first thing I noticed. Are you calling it with a string (as you should) rather than an integer? Also, I'm guessing you have a class around this, rather than just an initialize. If not, you'll generate an infinite loop trying to redefine Object#initialize and that will make things bad. Mac -- Posted via http://www.ruby-forum.com/.