vendor/gems/logging-0.9.7/lib/logging/appenders/string_io.rb
# Read a single line of text from the internal StringIO instance. +nil+
# is returned if the StringIO buffer is empty.
#
Read a single line of text from the internal StringIO instance. +nil+
is returned if the StringIO buffer is empty.
Read a single line of text from the internal StringIO instance . + nil + is returned if the StringIO buffer is empty .
def readline
      sync {
        begin
          @sio.seek @pos
          line = @sio.readline
          @pos = @sio.tell
          line
        rescue EOFError
          nil
        end
      }
    end
def readline sync { begin @sio . seek @pos line = @sio . readline @pos = @sio . tell line rescue EOFError nil end } end
Read a single line of text from the internal StringIO instance.
Read a single line of text from the internal StringIO instance .