Method: MyMatrix#dupRow

Defined in:
lib/mymatrix.rb

#dupRow(row, destmx, destrow, headers) ⇒ Object



920
921
922
923
924
925
926
# File 'lib/mymatrix.rb', line 920

def dupRow(row, destmx, destrow, headers)
  headers.each do |head|
    val = self.getValue(row, head)
    destmx.setValue(destrow, head, val)
  end
  return destrow
end