Sha256: e2465474a714524259b91a124835cf5d37b73f7a5b9993f51fdc3384e6e1aebf

Contents?: true

Size: 327 Bytes

Versions: 10

Compression:

Stored size: 327 Bytes

Contents

require 'forwardable'

module JustGo

  # = Territory 
  #
  # A collection of Points with the same territory id
  class Territory 
    extend Forwardable

    def initialize(points: [])
      @points = points
    end

    attr_reader :points

    def_delegator :points, :include?
    def_delegator :points, :size

  end
end


Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
just_go-0.1.10 lib/just_go/territory.rb
just_go-0.1.9 lib/just_go/territory.rb
just_go-0.1.8 lib/just_go/territory.rb
just_go-0.1.7 lib/just_go/territory.rb
just_go-0.1.6 lib/just_go/territory.rb
just_go-0.1.5 lib/just_go/territory.rb
just_go-0.1.4 lib/just_go/territory.rb
just_go-0.1.3 lib/just_go/territory.rb
just_go-0.1.2 lib/just_go/territory.rb
just_go-0.1.0 lib/just_go/territory.rb