class Puma::IOBuffer

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/puma/io_buffer.rbs

class Puma::IOBuffer < Puma::StringIO
  def read_and_reset: () -> String
end

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

Experimental RBS support (using type sampling data from the type_fusion project).

def read_and_reset: () -> String

This signature was generated using 43 samples from 1 application.

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