title: Correct way to populate an Array with a Range in Ruby
body: <p>I am working through a book which gives examples of Ranges being converted to equivalent arrays using their "to_a" methods</p>
  
  <p>When i run the code in irb I get the following warning</p>
  
  <pre><code> warning: default `to_a' will be obsolete
  </code></pre>
  
  <p>What is the the correct alternative to using to_a?</p>
  
  <p>are there alternate ways to populate an array with a Range?</p>