Method: Utils::IRB::Shell#less
- Defined in:
- lib/utils/irb.rb
#less(with_stderr = false, &block) ⇒ Object
Use pager on the output of the commands given in the block.
253 254 255 256 257 258 259 |
# File 'lib/utils/irb.rb', line 253 def less(with_stderr = false, &block) IO.popen($pager, 'w') do |f| f.write capture_output(with_stderr, &block) f.close_write end nil end |