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.
245 246 247 248 249 250 251 |
# File 'lib/utils/irb.rb', line 245 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 |