mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
user defined commit
This commit is contained in:
parent
7386692030
commit
74722e77ed
1 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,7 @@ class Pry
|
|||
# Pry.new.repl(Object.new)
|
||||
def repl(target=TOPLEVEL_BINDING)
|
||||
|
||||
# a line i added
|
||||
target = Pry.binding_for(target)
|
||||
target_self = target.eval('self')
|
||||
|
||||
|
@ -180,6 +181,7 @@ class Pry
|
|||
end
|
||||
end
|
||||
|
||||
# another line i added
|
||||
return_value = repl_epilogue(target, nesting_level, break_data)
|
||||
return_value || target_self
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue