J
John Elrick
Hoping you guys can help out here. Is there any way to interpolate a
string that is loaded dynamically?
I know that in Ruby I can do this:
my_message = 'Hello World'
my_template = "The message is #my_message"
puts my_template <== The message is Hello World
But what I want to do is
my_message = 'Hello World'
my_template =
File.readlines('my_template_file.txt').HOW-CAN-I-FORCE-INTERPOLATION???
puts my_template <== The message is Hello World
Anyone have any ideas? Or am I missing something blatantly obvious?
TIA
John Elrick
string that is loaded dynamically?
I know that in Ruby I can do this:
my_message = 'Hello World'
my_template = "The message is #my_message"
puts my_template <== The message is Hello World
But what I want to do is
my_message = 'Hello World'
my_template =
File.readlines('my_template_file.txt').HOW-CAN-I-FORCE-INTERPOLATION???
puts my_template <== The message is Hello World
Anyone have any ideas? Or am I missing something blatantly obvious?
TIA
John Elrick