Karl von Laudermann
5/18/2007 2:34:00 PM
On May 18, 10:26 am, jim o <jameso...@yahoo.com> wrote:
> I guess I did not ask my question very clearly. Sorry about that.
>
> What does the "#{ }" do for you? I think what I am missing is the feature provided by having that as a wrapper vs bare.
#{} in a string will interpret whatever is contained as ruby code,
convert the result into a string, and insert it into the containing
string. for example:
puts "Eight plus twelve equals #{8 + 12}"
will print:
Eight plus twelve equals 20