Sha256: 72eee8bcbf81b4e5e6aa25af3023d92bf536fbaf1a5a21b8e630c622ec02123a
Contents?: true
Size: 483 Bytes
Versions: 10
Compression:
Stored size: 483 Bytes
Contents
module Brakeman::ErubisPatch # Simple patch to make `erubis` compatible with frozen string literals def convert(input) codebuf = +"" # Modified line, the rest is identitical @preamble.nil? ? add_preamble(codebuf) : (@preamble && (codebuf << @preamble)) convert_input(codebuf, input) @postamble.nil? ? add_postamble(codebuf) : (@postamble && (codebuf << @postamble)) @_proc = nil # clear cached proc object return codebuf # or codebuf.join() end end
Version data entries
10 entries across 10 versions & 3 rubygems