From: lasitha Date: 2009-03-01T05:49:10+09:00 Subject: Re: How to put multiple values into a variable. On Sat, Feb 28, 2009 at 9:07 PM, Harry Nash wrote: > I am new to coding, I have tried to place a number of data strings into > one variable but I am missing something in the format. See example > below. > Note each part of the line after = does have a real value, I just > can't format the string. > > file-link = Dir.pwd, "#{filename}", "#{mp3-title}", "#{mp3-artist}" In addition to all the suggestions above, there is the special case of concatenating parts of a file path: file_link = File.join(Dir.pwd, filename, mp3_title, mp3_artist) Just in case that's what you're trying to achieve... Cheers, lasitha