module Erubis::StringBufferEnhancer

use String class for buffering

this is only for Eruby.

Public Instance Methods

add_postamble(src) click to toggle source
# File lib/erubis/enhancer.rb, line 214
def add_postamble(src)
  src << "\n" unless src[-1] == ?\n
  src << "#{@bufvar}.to_s\n"
end
add_preamble(src) click to toggle source
# File lib/erubis/enhancer.rb, line 210
def add_preamble(src)
  src << "#{@bufvar} = '';"
end