title: Printing string twice on the same line using different alignments
body: <p>I'm attempting to print strings on a single line with different alignments. I'd like to print:</p>
  
  <pre><code>---&gt; text &lt;---          ---&gt; text &lt;---
  </code></pre>
  
  <p>I did:</p>
  
  <pre><code>lineWidth = 40
  str = "---&gt; text &lt;---"
  puts str.ljust lineWidth str1.center lineWidth
  </code></pre>
  
  <p>I received an error message:</p>
  
  <pre><code>in `&lt;main&gt;': undefined method `lineWidth' for main:Object (NoMethodError)
  </code></pre>
  
  <p>Any thoughts?</p>