class Puma::IOBuffer

def append(*strs)

def append(*strs)
  strs.each { |str| write str }
end

def empty?

def empty?
  length.zero?
end

def initialize

def initialize
  super.binmode
end

def read_and_reset

Returns:
  • (String) - StringIO contents
def read_and_reset
  rewind
  str = read
  truncate 0
  rewind
  str
end

def reset

def reset
  truncate 0
  rewind
end

def to_s

def to_s
  rewind
  read
end