Anybody know how to embed a #{} in a string and then place the string in
an array?

eg.

array =["An #{age} year old..."]

returns
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:15

I tried adding single quotes
 array =[' "An #{age} year old..." ']   and this accepted the string but
the variable was also converted to a string, so lost as a variable.

Thanks

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