Sometimes running a command in a pryarrow-up-right session can produce a bunch of verbose output that you aren't interested in seeing.
pry
Here is a contrived line of code whose output will take over the entire screen:
(1..200).map { |i| i*i } #=> [1, 4, 9, 16, ...
You can silence all of this output by tacking on a single character -- ;.
;
(1..200).map { |i| i*i };
sourcearrow-up-right
Last updated 4 years ago