Method: MyMatrix#setSame
- Defined in:
- lib/mymatrix.rb
#setSame(head, headValue, hash) ⇒ Object
927 928 929 930 931 932 933 934 |
# File 'lib/mymatrix.rb', line 927 def setSame(head, headValue, hash) idxs = self.searchIndexes(head, headValue) idxs.each do |idx| hash.each_pair do |key, value| self.setValue(@mx[idx], key, value) end end end |