Method: TTY::Pager::SystemPager#puts
- Defined in:
- lib/tty/pager/system.rb
#puts(text) ⇒ SystemPager
Send a line of text, ending in a newline, to the pager process. Starts a new process if it hasn’t been started yet.
160 161 162 163 164 |
# File 'lib/tty/pager/system.rb', line 160 def puts(text) @pager_io ||= spawn_pager @pager_io.puts(text) self end |