Sha256: 40fc7ad5e3de54b9104e5f27a7aec8ee0d4bde8951c941ed12653f503f0ce309
Contents?: true
Size: 291 Bytes
Versions: 4
Compression:
Stored size: 291 Bytes
Contents
# frozen_string_literal: true module TTY class Pager class NullPager < Pager # Pass output directly to stdout # # @api public def page(text, &callback) return text unless output.tty? output.puts(text) end end end # Pager end # TTY
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tty-pager-0.12.1 | lib/tty/pager/null.rb |
tty-pager-0.12.0 | lib/tty/pager/null.rb |
tty-pager-0.11.0 | lib/tty/pager/null.rb |
tty-pager-0.10.0 | lib/tty/pager/null.rb |