Sha256: 05340087bd79f3f4123ac55684eccd200bc0baae170feb5ae3fe4f6b6432ae7a

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

module DiviningRod
  module Murge
    
    # This is tacky, but I'm preserving tags in the option hash
    # and only want to have to write this once
    #
    def murge(old_opts, new_opts)
      old_opts = old_opts || {}
      tags = Array(old_opts[:tags]) | Array(new_opts[:tags])
      opts = old_opts.merge(new_opts)
      opts[:tags] = tags
      opts
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
divining_rod-0.5.0 lib/divining_rod/murge.rb
divining_rod-0.4.0 lib/divining_rod/murge.rb