Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[ci skip] Correct documentation of HashWithIndifferentAccess#dup

  • Loading branch information...
commit 775a13c8a142316bbd02c26b1576c806314581bd 1 parent 3051356
@akshay-vishnoi akshay-vishnoi authored
View
4 activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -182,8 +182,8 @@ def values_at(*indices)
# dup = hash.dup
# dup[:a][:c] = 'c'
#
- # hash[:a][:c] #=> "c"
- # dup[:a][:c] #=> "c"
+ # hash[:a][:c] # => nil
+ # dup[:a][:c] # => "c"
def dup
self.class.new(self).tap do |new_hash|
new_hash.default = default
Please sign in to comment.
Something went wrong with that request. Please try again.