Wayne Brisette wrote in post #1068186:
>> From: Sebastjan H. <lists / ruby-forum.com>
>>
>> One side note, why this: puts "#{beast} strikes with: " produces
>> this:
>> #<Blue_Scale_DRAGON:0x8a225d0> strikes with:?
>
> When I've seen similar things in my code, I resort to using
> "#{beast}.to_s to
> coearse the variable into a string. I'm sure one of the more
> knowledgeable folks
> will explain the why (because I have always thought that's what
> #{variable} did
> without using the .to_s).
>
>
> Wayne

Hi,

I've tried it and I got #<Blue_Scale_DRAGON:0x90653ac>.to_s

I've tried other variations with .to_s and still doesn't work.

regards
seba

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