module CMSScanner::Formatter::Buffer
Module used to output the rendered views into a buffer and beautify it a the end of the scan
Public Instance Methods
buffer()
click to toggle source
# File lib/cms_scanner/formatter/buffer.rb, line 12 def buffer @buffer ||= +'' end
output(tpl, vars = {}, controller_name = nil)
click to toggle source
# File lib/cms_scanner/formatter/buffer.rb, line 8 def output(tpl, vars = {}, controller_name = nil) buffer << render(tpl, vars, controller_name).encode('UTF-8', invalid: :replace, undef: :replace) end