class PrayRemote::StdoeWrapper

Public Class Methods

new(o) click to toggle source
# File lib/pray-remote/pray-remote.rb, line 27
def initialize(o)
  @stdoe = o
end

Public Instance Methods

<<(data) click to toggle source
# File lib/pray-remote/pray-remote.rb, line 66
def <<(data)
  @stdoe << data
  self
end
eof?() click to toggle source
# File lib/pray-remote/pray-remote.rb, line 54
def eof?
  @stdoe.eof?
end
flush() click to toggle source
# File lib/pray-remote/pray-remote.rb, line 42
def flush
  @stdoe.flush
end
print(*args) click to toggle source
printf(*args) click to toggle source
# File lib/pray-remote/pray-remote.rb, line 62
def printf(*args)
  @stdoe.printf(*args)
end
puts(*lines) click to toggle source
# File lib/pray-remote/pray-remote.rb, line 58
def puts(*lines)
  @stdoe.puts(*lines)
end
respond_to?(*args) click to toggle source
# File lib/pray-remote/pray-remote.rb, line 31
def respond_to?(*args)
  case args[0]
  when :_dump
    true
  when :marshal_dump
    false
  else
    @stdoe.respond_to?(*args)
  end
end
tty?() click to toggle source

Some versions of Pry expect $stdout or its output objects to respond to this message.

# File lib/pray-remote/pray-remote.rb, line 73
def tty?
  false
end
write(*args) click to toggle source
# File lib/pray-remote/pray-remote.rb, line 46
def write(*args)
  @stdoe.write(*args)
end