From: Trans Date: 2008-03-01T03:27:23+09:00 Subject: Re: String interpolation method? On Feb 29, 9:07 am, Rob Biedenharn wrote: > If you want it to look even nicer, write it like: > >> a = lambda{|c| "bra#{c}ket"} > >> a[" see "] > => "bra see ket" The only trouble here is that you get the binding of where you defined the lambda, rather than the one in which you ultimately evaluate it in. With 1.9 I think we can use instance_exec to handle that however -- that being the case, the String::interpolate method I demoed above could be improved. T.