You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: abstract_handler.rb
    path of file: ./repos/padrino-framework/padrino-helpers/lib/padrino-helpers/output_helpers
    
    the code of the file until where you have to start completion: module Padrino
  module Helpers
    module Output
    
        def capture_from_template(*args, &block)
          self.output_buffer, _buf_was = SafeBuffer.new, self.output_buffer
          raw = yield(*args)
          captured = template.instance_variable_get(:@_out_buf)
          self.output_buffer = _buf_was
          engine_matches?(block) && !captured.empty? ? captured : raw.to_s
        end