Only take a shallow clone
This commit is contained in:
parent
fe2f5dc21b
commit
55b24898d7
|
@ -91,7 +91,7 @@ class Pry
|
||||||
|
|
||||||
# Returns [Hash] copy of the internal @hash history
|
# Returns [Hash] copy of the internal @hash history
|
||||||
def to_h
|
def to_h
|
||||||
Marshal.load( Marshal.dump(@hash) )
|
@hash.dup
|
||||||
end
|
end
|
||||||
|
|
||||||
def pop!
|
def pop!
|
||||||
|
|
Loading…
Reference in New Issue