Sha256: d8d8cab9115abb22520f178d8e30f4034207b9d7510664a6bc025868c989fcd9
Contents?: true
Size: 287 Bytes
Versions: 2
Compression:
Stored size: 287 Bytes
Contents
# frozen_string_literal: true require 'matrix' # extend matrix with method []=(i, j, v) # usage: m = ::Matrix.scalar(size, value).extend(Vote::Matrix) module Vote module Matrix def []=(i, j, v) # rubocop:disable Naming/MethodParameterName @rows[i][j] = v end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vote-schulze-0.4.0 | lib/vote/matrix.rb |
vote-schulze-0.3.0 | lib/vote/matrix.rb |