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

Add __,___, and ____ for just a little further back

This commit is contained in:
Conrad Irwin 2012-08-28 22:23:36 -07:00
parent be626cfada
commit c3c2a227db

View file

@ -186,7 +186,10 @@ class Pry
:_ex_ => proc { last_exception },
:_file_ => proc { last_file },
:_dir_ => proc { last_dir },
:_ => proc { last_result }
:_ => proc { last_result },
:__ => proc { @output_array[-2] },
:___ => proc { @output_array[-3] },
:____ => proc { @output_array[-4] }
}.merge(extra_sticky_locals)
end