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

Version Path
cms_scanner-0.0.41.10 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.9 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.8 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.7 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.6 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.5 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.4 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.3 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.2 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.1 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.41.0 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.40.3 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.40.2 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.40.1 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.40 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.39.4 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.39.3 lib/cms_scanner/formatter/buffer.rb
cms_scanner-0.0.39.2 lib/cms_scanner/formatter/buffer.rb