D
Damjan Rems
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
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