lib/vote/matrix.rb in vote-schulze-0.2.0 vs lib/vote/matrix.rb in vote-schulze-0.3.0

- old
+ new

@@ -1,15 +1,13 @@ -# encoding: UTF-8 +# frozen_string_literal: true -# extend matrix with method []=(i,j,v) -# usage: m = ::Matrix.scalar(size,value).extend(Vote::Matrix) +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) + def []=(i, j, v) # rubocop:disable Naming/MethodParameterName @rows[i][j] = v end - end end -