class ActionView::Template

def render(view, locals, buffer = ActionView::OutputBuffer.new, add_to_stack: true, &block)

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

def render: ((#<Class:0x000000010b88d540> | #<Class:0x000000010c3a67d8> | #<Class:0x000000011ee7c768>) view, Hash locals, ?ActionView::OutputBuffer buffer, add_to_stack: true, ) -> ActionView::OutputBuffer

This signature was generated using 4 samples from 1 application.

consume this in production. This is only slow if it's being listened to.
we use a bang in this instrumentation because you don't want to
This method is instrumented as "!render_template.action_view". Notice that

exactly before rendering.
Render a template. If the template was not compiled yet, it is done
def render(view, locals, buffer = ActionView::OutputBuffer.new, add_to_stack: true, &block)
  instrument_render_template do
    compile!(view)
    view._run(method_name, self, locals, buffer, add_to_stack: add_to_stack, &block)
  end
rescue => e
  handle_render_error(view, e)
end