title: Ruby: how to interpolate in a string?
body: <p>Is a simple question about how to print an interpolation on a string in ruby
  My method is this:</p>
  <pre><code>def hello(parameter)
    puts &quot;hello + #{parameter}&quot;
  end
  </code></pre>
  <p>puts hello(name)
  but irb, show me these message:
  NameError: undefined local variable or method `name' for main:Object</p>
  <p>It is about my commands to irb? or what i'm doing wrong in my code, 'cause i know that i 've a mistake but can't find where.</p>
  <p>Thank you, it's my first post ejje.</p>