method

capture

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActionView::OutputBuffer
capture(*args) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/buffers.rb, line 72
    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
Register or log in to add new notes.