class ActionView::OutputBuffer

def capture(*args)

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

def capture: (*Array[] args) -> ActiveSupport::SafeBuffer

This signature was generated using 4 samples from 1 application.

def capture(*args)
  new_buffer = +""
  old_buffer, @raw_buffer = @raw_buffer, new_buffer
  yield(*args)
  new_buffer.html_safe
ensure
  @raw_buffer = old_buffer
end