Adam Shelly wrote:
> On 8/28/08, Brian A. <judobrian+ruby-forum / gmail.com> wrote:
>> ========================================================================
>> Person class from the Address class?
>>
> You are right, the Address class does have its own #to_s.  The issue
> here is that when you type @address, you are not automatically calling
> it.  You need to do @address.to_s.    (The puts method does
> automatically call #to_s on its arguments, but it is not recursive).
> 
> Also, you probably want a '+' after the @email + "\n".  Methods return
> the value of the last line, so without you will only return the
> address, not the name and email from the previous lines.
> 
> -Adam

Thank you, that worked great!
-- 
Posted via http://www.ruby-forum.com/.