lib/extlib/mash.rb in extlib-0.9.4 vs lib/extlib/mash.rb in extlib-0.9.5
- old
+ new
@@ -81,14 +81,9 @@
# @return <Array> The values at each of the provided keys
def values_at(*indices)
indices.collect {|key| self[convert_key(key)]}
end
- # @return <Mash> A duplicate of this mash.
- def dup
- Mash.new(self)
- end
-
# @param hash<Hash> The hash to merge with the mash.
#
# @return <Mash> A new mash with the hash values merged in.
def merge(hash)
self.dup.update(hash)
\ No newline at end of file