Method: MyMatrix#setSame
- Defined in:
- lib/mymatrix.rb
#setSame(head, headValue, hash) ⇒ Object
939 940 941 942 943 944 945 946 |
# File 'lib/mymatrix.rb', line 939 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 |