title: Ruby ternary operator structure
body: <pre><code>puts bool ? "true" : "false"
  </code></pre>
  
  <p>is proper, but</p>
  
  <pre><code>bool ? puts "true" : puts "false"
  </code></pre>
  
  <p>is not.  Can somebody explain to me why this is?</p>
  
  <p>Side note:</p>
  
  <pre><code>bool ? ( puts "true" ) : ( puts "false" )
  </code></pre>
  
  <p>works fine as well.</p>