Suppose we have pry
installed, open the rails console, and run
times = [1, 5, 10, 30, 72].sample(1)[0]
nums = *(1..72)
num_sample = nums.sample(times)
Evaluation stops after line 2 (since the output of the second line runs off screen and hence the console opens the output):
How can we get the console to not stop executing, but rather display the entirety of the output of one line before executing the next, that is, to execute all lines of code it receives? Is there any way to achieve this without removing the pry-rails gem?
You can disable pry pager: