Commit Graph

3 Commits

Author SHA1 Message Date
Conrad Irwin 3bb6cd3a31 Issue 284, Pry should respect input encoding. 2011-10-01 13:19:44 -07:00
John Mair 4e3853ea33 now using 'retry' (in read loop) to switch input objects in input_stack
This is so we can make the switch to the new input object seemless on encountering EOFError in previous input object.
We also detect whether we are going to go into an infinite EOFError state (i.e if Pry.config.input generates EOFError) and so we break out of the REPL with an error message
and a throw(:breakout)
2011-09-16 03:27:19 +12:00
John Mair 5a274b26df added input_stack support to Pry
input_stack allows Pry instances to seemlessly continue reading input from other input objects on the stack when the current object generates EOF
Useful when you need to temporarily divert reading to another object and then switch back to another object
2011-09-15 21:10:37 +12:00