Class: Pry::Pager::NullPager
Overview
‘NullPager` is a “pager” that actually just prints all output as it comes in. Used when `Pry.config.pager` is false.
Direct Known Subclasses
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(out) ⇒ NullPager
constructor
A new instance of NullPager.
- #print(str) ⇒ Object (also: #<<)
- #puts(str) ⇒ Object
- #write(str) ⇒ Object
Constructor Details
#initialize(out) ⇒ NullPager
Returns a new instance of NullPager.
65 66 67 |
# File 'lib/pry/pager.rb', line 65 def initialize(out) @out = out end |
Instance Method Details
#close ⇒ Object
82 83 |
# File 'lib/pry/pager.rb', line 82 def close end |
#print(str) ⇒ Object Also known as: <<
73 74 75 |
# File 'lib/pry/pager.rb', line 73 def print(str) write str end |
#puts(str) ⇒ Object
69 70 71 |
# File 'lib/pry/pager.rb', line 69 def puts(str) print "#{str.chomp}\n" end |
#write(str) ⇒ Object
78 79 80 |
# File 'lib/pry/pager.rb', line 78 def write(str) @out.write str end |