Project

pager

0.01
No commit activity in last 3 years
No release in over 3 years
Git-style automatic paging
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Pager

Git-style automatic paging in Ruby

Installation

gem install pager

Usage

require 'pager'

class Example
  include Pager

  def output_lots_of_text
    page
    # any output after this line will be automatically paged
  end
end

History

This library is merely a packaged version of the run_pager code snippet by Nathan Weizenbaum. It was originally built for use with cheat by Chris Wanstrath. The snipped was packaged as a gem by Erik Michaels-Ober for use with t.

irb-pager

Many thanks to Denis Knauf for relinquishing the pager gem name to this project. If you're looking for irb-pager, it can be found here.

Contributing

  1. Fork it
  2. Create a topic branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Submit a pull request.