>
<p>The <code>new</code> method creates a shapefile.
All three files (<code>.shp</code>, <code>.shx</code>, and <code>.dbf</code>) are created.
Argument <var>shapetype</var> specifies the <a href="#label-86">type of shapes</a>
to be stored in the shapefile.
Argument <var>attrs</var> is an array of arrays
that specifies <var>field_name</var>, <var>field_type</var>, <var>width</var>,
and optional <var>decimal</var> as in
<a href="#label-12">shapefile.add_field</a>
.</p>
<pre># example
fp = ShapeFile::new('ci