Iain Barnett wrote:


> I'm not sure why your irb didn't give an error. Did you load any files 
> into it?
> 
> 
> Iain

Thanks, Iain. no, I didn't load any files (that I'm aware of)--and I 
double-checked just now by opening up the terminal fresh and going 
straight to irb and typing it in again--no error.

However, I did find that putting the method into the Integer class as 
you did made the method work properly in a saved script!  That moves my 
understanding of self forward a bit.  Many thanks for your kind 
response!!

-Dave
-- 
Posted via http://www.ruby-forum.com/.