Sha256: 4b726d75e8098502a586d57b64f164eac87f676203d9cdda23bbc75c45c221a9

Contents?: true

Size: 348 Bytes

Versions: 9

Compression:

Stored size: 348 Bytes

Contents

module RCAP
  module CAP_1_2

    # A Polygon object is valid if
    # * it has a minimum of three points
    # * each Point object in the points collection is valid
    class Polygon < RCAP::Base::Polygon

      validates_length_of( :points, :minimum => 4 )

      # @return [Class]
      def point_class
        Point
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rcap-2.4.1 lib/rcap/cap_1_2/polygon.rb
rcap-2.4.0 lib/rcap/cap_1_2/polygon.rb
rcap-2.3.0 lib/rcap/cap_1_2/polygon.rb
rcap-2.2.1 lib/rcap/cap_1_2/polygon.rb
rcap-2.2.0 lib/rcap/cap_1_2/polygon.rb
rcap-2.1.0 lib/rcap/cap_1_2/polygon.rb
rcap-2.0.2 lib/rcap/cap_1_2/polygon.rb
rcap-2.0.1 lib/rcap/cap_1_2/polygon.rb
rcap-2.0.0 lib/rcap/cap_1_2/polygon.rb