Module: CMSScanner::Formatter::Buffer

Included in:
Json
Defined in:
lib/cms_scanner/formatter/buffer.rb

Overview

Module used to output the rendered views into a buffer and beautify it a the end of the scan

Instance Method Summary collapse

Instance Method Details

#bufferObject



10
11
12
# File 'lib/cms_scanner/formatter/buffer.rb', line 10

def buffer
  @buffer ||= ''
end

#output(tpl, vars = {}, controller_name = nil) ⇒ Object



6
7
8
# File 'lib/cms_scanner/formatter/buffer.rb', line 6

def output(tpl, vars = {}, controller_name = nil)
  buffer << render(tpl, vars, controller_name)
end