Sha256: 7fbf06eec440efa5278c6890a51bccccbf6d1af3ec0afa9c4bd745c0ec13e6da
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 Bytes
Contents
module DiviningRod class Mash < Hash def initialize(hsh = {}) self.replace(hsh || {}) end def merge(opts) opts = opts.dup if self[:tags] || opts[:tags] tags = Array(self[:tags]) | Array(opts[:tags]) opts[:tags] = tags end super(opts) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
divining_rod-0.6.4 | lib/divining_rod/mash.rb |
divining_rod-0.6.3 | lib/divining_rod/mash.rb |