From: Eero Saynatkari Date: 2006-09-04T02:00:32+09:00 Subject: Re: Already stalled in Pick Axe book - could use some help Jeff Rohrer wrote: > Hi, total noob here. I'm only on page 25 of the Pick Axe book and I'm a > little stuck: > > I'm running Ruby version 1.8.4 on Windows XP Home Edition. I'm entering > code via irb. > > Here's the problem: I enter the following code from the book: > > > > irb(main):008:0> load "c:/code/song.rb" > => true Your code seems to be fine--however, you mention using irb but also, obviously, #load a file here. If the file contains the old code and you #load it after you have entered the new class code in irb, it will redefine your methods. Try and just enter the above class definition either in irb or the file (and #load it in irb), but not both and see if that helps. > > Regards, > Jeff -- Posted via http://www.ruby-forum.com/.