lib/symbolmatrix/symbolmatrix.rb in symbolmatrix-1.0.0 vs lib/symbolmatrix/symbolmatrix.rb in symbolmatrix-1.1.0

- old
+ new

@@ -83,9 +83,20 @@ end end return result end + # Merges recursively the passed SymbolMatrix into self + def recursive_merge! symbolmatrix + symbolmatrix.each do |key, value| + if self.has_key? key + self[key].recursive_merge! value + else + self[key] = value + end + end + end + class KeyNotDefinedException < RuntimeError; end class InvalidKeyException < RuntimeError; end end def SymbolMatrix *args \ No newline at end of file