Module: DiviningRod::Murge
- Defined in:
- lib/divining_rod/murge.rb
Instance Method Summary collapse
-
#murge(old_opts, new_opts) ⇒ Object
This is tacky, but I’m preserving tags in the option hash and only want to have to write this once.
Instance Method Details
#murge(old_opts, new_opts) ⇒ Object
This is tacky, but I’m preserving tags in the option hash and only want to have to write this once
7 8 9 10 11 12 13 14 |
# File 'lib/divining_rod/murge.rb', line 7 def murge(old_opts, new_opts) old_opts = old_opts || {} new_opts = new_opts || {} = Array(old_opts[:tags]) | Array(new_opts[:tags]) opts = old_opts.merge(new_opts) opts[:tags] = opts end |