Module Erubis::ArrayBufferEnhancer
In: erubis/enhancer.rb

use an Array object as buffer (included in Eruby by default)

this is only for Eruby.

Methods

Public Instance methods

[Source]

# File erubis/enhancer.rb, line 197
    def add_postamble(src)
      src << "\n" unless src[-1] == ?\n
      src << "_buf.join\n"
    end

[Source]

# File erubis/enhancer.rb, line 193
    def add_preamble(src)
      src << "_buf = [];"
    end

[Validate]