title: What's the Ruby equivalent of Python's output[:-1]?
body: <p>In Python, if I want to get the first n characters of a string minus the last character, I do:</p>
  
  <pre><code>output = 'stackoverflow'
  print output[:-1]
  </code></pre>
  
  <p>What's the Ruby equivalent?</p>