class BetterErrors::REPL::Pry::Output

Public Class Methods

new() click to toggle source
# File lib/better_errors/pry/repl/pry.rb, line 14
def initialize
  @buffer = ""
end

Public Instance Methods

print(*args) click to toggle source
puts(*args) click to toggle source
# File lib/better_errors/pry/repl/pry.rb, line 18
def puts(*args)
  args.each do |arg|
    @buffer << "#{arg.chomp}\n"
  end
end
read_buffer() click to toggle source
# File lib/better_errors/pry/repl/pry.rb, line 28
def read_buffer
  @buffer
ensure
  @buffer = ""
end
tty?() click to toggle source
# File lib/better_errors/pry/repl/pry.rb, line 24
def tty?
  false
end