lib/procemon/mpatch/hash.rb in procemon-0.8.0 vs lib/procemon/mpatch/hash.rb in procemon-0.8.1

- old
+ new

@@ -79,6 +79,23 @@ self[key] == sub_hash[key] end end end unless method_defined? :deep_include? + def map_hash &block + + tmp_hash= Hash.new + map_hash_obj= self.map &block + map_hash_obj.each do |hash| + + if hash.class <= Array + hash= Hash[*hash] + end + + tmp_hash.deep_merge!(hash) + + end + + return tmp_hash + end + end \ No newline at end of file