John Carter wrote:
> eval "\"#{a}\""
> => "bra see ket"
> 
> Any better way?

Not better.  Just different:

eval '"%s"'%(a)

Does the same thing but without needing the backslashes.

I don't see any other way really.  You must have a double eval in some 
manner.  One to get the value of a and one to evaluate the result.  The 
first eval can be explicit (as in your example with #{}) or implicit (as 
in my example).

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