Extensions to Hash needed by Reek.
# File lib/reek/core/sniffer.rb, line 26 def adopt(other) self.deep_copy.adopt!(other) end
# File lib/reek/core/sniffer.rb, line 14 def adopt!(other) other.keys.each do |key| ov = other[key] if Array === ov and has_key?(key) self[key] += ov else self[key] = ov end end self end
Generated with the Darkfish Rdoc Generator 2.