module Erubis::StdoutEnhancer

use $stdout instead of string

this is only for Eruby.

Public Instance Methods

add_postamble(src) click to toggle source
# File lib/erubis/enhancer.rb, line 73
def add_postamble(src)
  src << "\n''\n"
end
add_preamble(src) click to toggle source
# File lib/erubis/enhancer.rb, line 69
def add_preamble(src)
  src << "#{@bufvar} = $stdout;"
end