Sha256: 3894f8ad2b64273cdda5d3caf93a6053d7156cc6a20b939a5f67e242ac473aa5
Contents?: true
Size: 440 Bytes
Versions: 24
Compression:
Stored size: 440 Bytes
Contents
module Lev module Utilities def self.deep_merge(hash, override_hash) result = hash.dup override_hash.each_pair do |k,v| tv = result[k] result[k] = tv.is_a?(Hash) && v.is_a?(Hash) ? deep_merge(tv, v) : v end result end end end module Kernel def eigenclass class << self self end end def includes_module?(mod) eigenclass.included_modules.include?(mod) end end
Version data entries
24 entries across 24 versions & 1 rubygems