diff options
author | Max Goldstein <maxgoldstein1@gmail.com> | 2015-02-24 19:48:38 -0500 |
---|---|---|
committer | Max Goldstein <maxgoldstein1@gmail.com> | 2015-02-25 17:36:08 -0500 |
commit | 62281bca63d9a532969d1babfcf7ccdbf9a000e9 (patch) | |
tree | e92a8370430514151ff1a151e58c36fc03c0abc4 /lib/hashie/mash.rb | |
parent | afd7a2d6b4a3668825a9b524768b23d8d7947b13 (diff) | |
download | hashie-62281bca63d9a532969d1babfcf7ccdbf9a000e9.tar.gz |
Add Hashie::Mash#reverse_merge. Increase Rubocop class length.
Fixes intridea/hashie#270
Diffstat (limited to 'lib/hashie/mash.rb')
-rw-r--r-- | lib/hashie/mash.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/hashie/mash.rb b/lib/hashie/mash.rb index e4927e8..1428816 100644 --- a/lib/hashie/mash.rb +++ b/lib/hashie/mash.rb @@ -255,6 +255,11 @@ module Hashie true end + # another ActiveSupport method, see issue #270 + def reverse_merge(other_hash) + Hashie::Mash.new(other_hash).merge(self) + end + protected def method_suffix(method_name) |