module Utils::IRB::Shell

def less(with_stderr = false, &block)

Other tags:
    Yield: -

Parameters:
  • with_stderr (TrueClass, FalseClass) -- whether to include standard error in the capture
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