class Puma::IOBuffer

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 2 samples from 1 application.

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