title: Ruby: Replace parts of a string
body: <p>I have many strings following a certain pattern:</p>
  
  <pre><code>string = "Hello, @name. You did @thing." # example
  </code></pre>
  
  <p>Basically, my strings are a description where @word is dynamically. I need to replace each with a value at runtime.</p>
  
  <pre><code>string = "Hello, #{@name}. You did #{@thing}." # Is not an option!
  </code></pre>
  
  <p>The @word is basically a variable, but I just cannot use the method above.
  How should I do that?</p>