Reputation: 7631
In python's ipython you can reference the output in the following way:
ipython
In [15]: s = "abcd" In [16]: s Out[16]: 'abcd' In [17]: Out[16] Out[17]: 'abcd'
What is the equivalent for ruby's pry?
pry
Upvotes: 1
Views: 132
Using the _out_ and _in_ variables, as described in the docs.
_out_
_in_
E.g.: _out_[16] or _out_[-1] for the last result.
_out_[16]
_out_[-1]