Module: HooplaSalesforce::CaptureHelper

Included in:
TemplateProcessor::Base
Defined in:
lib/hoopla_salesforce/eruby.rb

Instance Method Summary collapse

Instance Method Details

#captureObject



10
11
12
13
14
15
# File 'lib/hoopla_salesforce/eruby.rb', line 10

def capture
  @output_buffer, original_buffer = HooplaSalesforce::OutputBuffer.new, @output_buffer
  yield
  @output_buffer, buffer = original_buffer, @output_buffer
  buffer
end