Sha256: 8e64790af4c0a6171e4ec405560009cb0a3e3f1807af3c207b98783c30c63515
Contents?: true
Size: 400 Bytes
Versions: 18
Compression:
Stored size: 400 Bytes
Contents
module CMSScanner module Formatter # Module used to output the rendered views into a buffer # and beautify it a the end of the scan module Buffer def output(tpl, vars = {}, controller_name = nil) buffer << render(tpl, vars, controller_name).encode('UTF-8', invalid: :replace, undef: :replace) end def buffer @buffer ||= '' end end end end
Version data entries
18 entries across 18 versions & 1 rubygems