class Hash
Public Instance Methods
modify(hash, excludes=[])
click to toggle source
# File lib/graphkit.rb, line 15 def modify(hash, excludes=[]) hash.each do |key, value| # p key # ep key, value if value #if option == :xrange begin self[key] = value.dup unless excludes.include? key rescue TypeError #immediate values cannot be dup'd self[key] = value unless excludes.include? key end end self end
Also aliased as: absorb