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

Merge pull request #1364 from pry/refactor/dont-throwaway-pry-instance

Use _pry_.pager if possible
This commit is contained in:
John Mair 2015-02-28 00:29:12 -05:00
commit 6050a062c0

View file

@ -98,7 +98,11 @@ class Pry
# enabled). Infers where to send the output if used as a mixin.
# DEPRECATED.
def stagger_output(text, out = nil)
Pry.new.pager.page text
if _pry_
_pry_.pager.page text
else
Pry.new.pager.page text
end
end
end
end