From: "Sebastjan H." Date: 2012-07-11T05:55:45+09:00 Subject: Re: learning by doing part 2 - tc game Wayne Brisette wrote in post #1068186: >> From: Sebastjan H. >> >> One side note, why this: puts "#{beast} strikes with: " produces >> this: >> # 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 #.to_s I've tried other variations with .to_s and still doesn't work. regards seba -- Posted via http://www.ruby-forum.com/.