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