From: Matthias Reitinger Date: 2008-08-29T02:13:20+09:00 Subject: Re: Newb question: Printing a class. Hello Brian, Brian A. wrote: > If I then run: 'puts sandy.address' it correctly outputs the address. > This bit of code was given to me in the tutorial. However if I type > 'puts sandy.person' I get the following error message: > 'test_temp1.rb:43: undefined method `person' for # > (NoMethodError)' There is no method called `person` in your Person class. If you want to print the string representation of `sandy`, just do a `puts sandy`. Regards, Matthias -- Posted via http://www.ruby-forum.com/.