class Pry::Pager::NullPager - pry-0.10.1 Documentation

# class Pry::Pager::NullPager

`NullPager` is a “pager” that actually just prints all output as it comes in. Used when `Pry.config.pager` is false.

### Public Class Methods

new(out) click to toggle source

    # File lib/pry/pager.rb, line 65
    def initialize(out)
      @out = out
    end

### Public Instance Methods

<<(str)
Alias for: print
close() click to toggle source

    # File lib/pry/pager.rb, line 82
    def close
    end

print(str) click to toggle source

    # File lib/pry/pager.rb, line 73
    def print(str)
      write str
    end

Also aliased as: <<
puts(str) click to toggle source

    # File lib/pry/pager.rb, line 69
    def puts(str)
      print "#{str.chomp}\n"
    end

write(str) click to toggle source

    # File lib/pry/pager.rb, line 78
    def write(str)
      @out.write str
    end