I don't know how to explain so I will just code:

template = 'some text #{variable}' # single quotes for reason
variable = 'filled'
res = some_method(template)

Here, res should have value 'some text filled'.

Is there an easy way doing this in ruby. Hard way is of course parsing
and  inserting text with my own method.

by
TheR

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