class Puma::IOBuffer
Public Class Methods
Source
# File lib/puma/io_buffer.rb, line 7 def initialize super.binmode end
Calls superclass method
Public Instance Methods
Source
# File lib/puma/io_buffer.rb, line 41 def append(*strs) strs.each { |str| write str } end
Source
# File lib/puma/io_buffer.rb, line 27 def read_and_reset rewind str = read truncate 0 rewind str end
Read & Reset - returns contents and resets @return [String] StringIO contents