Sha256: d049e3c9a2c9070a29fbfab1a9a9ca1185d55d0f52444911ed4b760492d1b1f7
Contents?: true
Size: 432 Bytes
Versions: 50
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true 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
50 entries across 50 versions & 3 rubygems