1
0
Fork 0
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:
John Mair 2011-07-15 01:35:39 +12:00
parent 7386692030
commit 74722e77ed

View file

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