module Erubis::ArrayEnhancer
return array instead of string
this is only for Eruby
.
Public Instance Methods
Source
# File lib/erubis/enhancer.rb, line 168 def add_postamble(src) src << "\n" unless src[-1] == ?\n src << "#{@bufvar}\n" end
Source
# File lib/erubis/enhancer.rb, line 164 def add_preamble(src) src << "#{@bufvar} = [];" end