Sha256: 17d2deb643fe7c09de9c33f643e2ffa25c914cc1d620993c6dc4ce88d52f8f42

Contents?: true

Size: 242 Bytes

Versions: 3

Compression:

Stored size: 242 Bytes

Contents

module Erubis
  module OutputBufferEnhancer

    def self.desc   # :nodoc:
      "set '@output_buffer = _buf = \"\";'"
    end

    def add_preamble(src)
      src << "__in_erubis_template=true; @output_buffer = _buf = '';"
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
methodmissing-erubis_template_handler-0.0.0 lib/output_buffer_enhancer.rb
methodmissing-erubis_template_handler-1.0.0 lib/output_buffer_enhancer.rb
methodmissing-erubis_template_handler-1.0.2 lib/output_buffer_enhancer.rb