Method: MyMatrix#dupRow
- Defined in:
- lib/mymatrix.rb
#dupRow(row, destmx, destrow, headers) ⇒ Object
932 933 934 935 936 937 938 |
# File 'lib/mymatrix.rb', line 932 def dupRow(row, destmx, destrow, headers) headers.each do |head| val = self.getValue(row, head) destmx.setValue(destrow, head, val) end return destrow end |