Module: Doing::Pager

Defined in:
lib/doing/pager.rb

Overview

Pagination

Class Method Summary collapse

Class Method Details

.page(text) ⇒ Object

Page output. If @paginate is false, just dump to STDOUT

Parameters:

  • text (String)

    text to paginate

.paginateObject

Boolean determines whether output is paginated

.paginate=(should_paginate) ⇒ Object

Enable/disable pagination

Parameters:

  • should_paginate (Boolean)

    true to paginate