1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

changed behaviour in r() method on EOFError to set self.input to Pry.input instead of Readline

This commit is contained in:
John Mair 2011-05-17 05:08:40 +12:00
parent 33b8f07661
commit b9ed38a2b3

View file

@ -175,6 +175,7 @@ class Pry
# Ruby expression is received.
# Pry commands are also accepted here and operate on the target.
# @param [Object, Binding] target The receiver of the read.
# @param [String] eval_string Optionally Prime `eval_string` with a start value.
# @return [String] The Ruby expression.
# @example
# Pry.new.r(Object.new)
@ -290,7 +291,7 @@ class Pry
end
rescue EOFError
self.input = Readline
self.input = Pry.input
""
end
end