Sha256: a4a13b07045ad2556f3cc03ac01714c1afb1ef876e4a40d2f3d33466c82dc995
Contents?: true
Size: 519 Bytes
Versions: 4
Compression:
Stored size: 519 Bytes
Contents
# A stripped-down version of Configoro that works without any gems. require 'erb' require 'yaml' load File.join(File.dirname(__FILE__), 'base.rb') # @private class Configoro::HashWithIndifferentAccess < ::Hash def deep_merge(other_hash) dup.deep_merge!(other_hash) end def deep_merge!(other_hash) other_hash.each_pair do |k, v| tv = self[k] self[k] = tv.is_a?(Hash) && v.is_a?(Hash) ? tv.deep_merge(v) : v end self end end load File.join(File.dirname(__FILE__), 'hash.rb')
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
configoro-1.4.1 | lib/configoro/simple.rb |
configoro-1.4.0 | lib/configoro/simple.rb |
configoro-1.3.0 | lib/configoro/simple.rb |
configoro-1.2.4 | lib/configoro/simple.rb |