title: How do I eval multiple lines of code in ruby?
body: <pre><code>eval('puts "ff"\nputs "ff"')
  </code></pre>
  
  <p>I tried to use two expressions in one eval but it doesn't execute?</p>
  
  <p>How do I do this? I want to know because I want to dynamically execute partial code.</p>