We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c63947 + 775a13c commit b73dd62Copy full SHA for b73dd62
activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -182,8 +182,8 @@ def values_at(*indices)
182
# dup = hash.dup
183
# dup[:a][:c] = 'c'
184
#
185
- # hash[:a][:c] #=> "c"
186
- # dup[:a][:c] #=> "c"
+ # hash[:a][:c] # => nil
+ # dup[:a][:c] # => "c"
187
def dup
188
self.class.new(self).tap do |new_hash|
189
new_hash.default = default
0 commit comments