summaryrefslogtreecommitdiff
path: root/lib/hashie/mash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hashie/mash.rb')
-rw-r--r--lib/hashie/mash.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hashie/mash.rb b/lib/hashie/mash.rb
index 9991fb1..78f63e3 100644
--- a/lib/hashie/mash.rb
+++ b/lib/hashie/mash.rb
@@ -128,6 +128,10 @@ module Hashie
super(convert_key(key))
end
+ def values_at(*keys)
+ super(*keys.map { |key| convert_key(key) })
+ end
+
alias_method :regular_dup, :dup
# Duplicates the current mash as a new mash.
def dup