Returns a new instance of Polygon.
122 123 124 125
# File 'lib/cloudmade/geometry.rb', line 122 def initialize(coords) @border_line = Line.new(coords[0]) @holes = coords.slice(1, coords.length).map { |line_coords| Line.new(line_coords) } end