title: what is the named constructor equivalent of the literal constructor for the Range class?
body: <p>somewhat new to rails. I am working through the exercises on 4.4.1 in Michael Hartl's learn rails tutorial and i'm a bit unclear as to what the named constructor for the class Range is</p>
  
  <p>when i type the literal constructor in the console it returns the appropriate value</p>
  
  <pre><code>(1..10)
  =&gt;1..10
  </code></pre>
  
  <p>but when i try the named constructor</p>
  
  <pre><code>Range.new(1..10)
  </code></pre>
  
  <p>i receive an error </p>
  
  <pre><code>ArgumentError: wrong number of arguments (given 1, expected 2..3)
      from (irb):104:in `initialize'
      from (irb):104:in `new'
  </code></pre>
  
  <p>Ive tried adding many types of extra arguments i.e</p>
  
  <pre><code>Range.new(1)..Range.new(10)
  Range.new(1)..(10)
  etc..
  </code></pre>
  
  <p>But I'm always met with an argument error.</p>