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
|
||||
def to_h
|
||||
Marshal.load( Marshal.dump(@hash) )
|
||||
@hash.dup
|
||||
end
|
||||
|
||||
def pop!
|
||||
|
|
Loading…
Reference in New Issue