title: Array of coordinates in Ruby
body: <p>I have a class <code>Point</code> in Ruby like this:</p>
  
  <pre class="lang-ruby prettyprint-override"><code>class Point
  
      attr_accessor :x,:y
  
      def initialize(*args)
          @y,@x=args
      end
  
  end
  </code></pre>
  
  <p>How can I create an array of Point[1...n]? Thanks so much!  </p>