title: Ruby Basics: Pop Method in Array
body: <p>I'm working my way through Learning Ruby the Hard Way online; I've just finished the 26th exercise which was a "test" whereby you fixed someone's broken code. </p>
  
  <p>My problem came with using an argument with the pop method. I'm familiar with the basics but the correct answer meant changing the argument from "-1" to "1", and I'm not sure what it means, exactly. </p>
  
  <p>The line in question is:</p>
  
  <pre><code>def puts_last_word(words)
      word = words.pop(1)
      puts word
  end
  </code></pre>
  
  <p>I assume it pops the second element from the array but I would like confirmation or help, whichever is appropriate.</p>