Only take a shallow clone

This commit is contained in:
Conrad Irwin 2013-12-08 09:40:45 -08:00
parent fe2f5dc21b
commit 55b24898d7
1 changed files with 1 additions and 1 deletions

View File

@ -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!