class TTY::Pager::NullPager
Public Instance Methods
close()
click to toggle source
Do nothing, always return success
@api public
# File lib/tty/pager/null.rb, line 30 def close true end
puts(text)
click to toggle source
Pass output directly to stdout
@api public
# File lib/tty/pager/null.rb, line 21 def puts(text) return text unless output.tty? output.puts(text) end
write(text)
click to toggle source
Pass output directly to stdout
@api public
# File lib/tty/pager/null.rb, line 11 def write(text) return text unless output.tty? output.write(text) end
Also aliased as: <<