From: Greg Date: 2007-05-09T15:25:05+09:00 Subject: Re: Passing info to classes and methods On 2007-05-08 18:47:50 -0700, Rob Biedenharn said: > > On May 8, 2007, at 9:10 PM, Greg wrote: > >> def pick_an_orange numToPick >> puts 'Got to pick_an_orange, now trying to get it working. >> numToPick: #{numToPick}' # debugging > > Did you mean to have puts "Got ... #{numToPick}" in "double-quotes" to > interpolate the #{numToPick}. In single quotes, you'll get literally: > > Got to pick_an_orange, now trying to get it working. numToPick: # {numToPick} > > Does that help you? > > -Rob Thanks, I missed that I had single quotes. I think I'm learning that double quotes are safer. For some reason Pine uses single quotes. I mainly need to get used to reading Ruby so I can see errors. Practice...