This method is only available on newer versions. The first available version (v8.1.1) is shown here.
body()
Returns the complete body as a string.
# File actionview/lib/action_view/renderer/streaming_template_renderer.rb, line 29 def body buffer = String.new each { |part| buffer << part } buffer end