[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Clean way to dynamically expand string with "#{expression}"?

Peña, Botp

4/23/2005 4:08:00 AM

Taisuke Yamada [mailto:tyamadajp@list.rakugaki.org] wrote:

#Yes, what I was looking for is 'perfect interpolation on
#demand' that'll work whatever content is in interpolated
#string. I guess
#
# eval("<<END_REEVAL\n" + self + "\nEND_REEVAL\n", b)

good code.
Asking gurus: Is it possible to not use eval here?

thanks and kind regards -botp