title: Can I access a variable within a heredoc in Ruby?
body: <p>If I have a method</p>
  
  <pre><code>  def some_method p = {}
      string = &lt;&lt;-MY_TERMINATOR
        Example text blah blah
        lorem ipsum something or another
      MY_TERMINATOR
    end
  </code></pre>
  
  <p>how can I access the variable p[:name] from within the heredoc?</p>