class Unicorn::Prewarm::NetStringIO

Public Instance Methods

readline() click to toggle source
Calls superclass method
# File lib/unicorn/prewarm.rb, line 14
def readline
  super.chomp
end
readuntil(idx, ignore_eof) click to toggle source
# File lib/unicorn/prewarm.rb, line 18
def readuntil(idx, ignore_eof)
  buff = ''
  loop do
    char = read(1)
    return buff unless char
    buff << char
    return buff if char == idx
  end
end