Sha256: 2c6d325b248c31b9639b48585d526b0f0afb369996874aa151e03971ac272760

Contents?: true

Size: 211 Bytes

Versions: 2

Compression:

Stored size: 211 Bytes

Contents

# encoding: UTF-8

# extend matrix with method []=(i,j,v)
# usage: m = ::Matrix.scalar(size,value).extend(Vote::Matrix)

module Vote
  module Matrix

    def []=(i,j,v)
      @rows[i][j] = v
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vote-schulze-0.2.0 lib/vote/matrix.rb
vote-schulze-0.1.0 lib/vote/matrix.rb