From: Jamis Buck Date: 2004-10-28T06:05:56+09:00 Subject: Re: Another erb Question James Edward Gray II wrote: > Can anyone explain the practical purpose of the final arg to ERB.new() > to me? class ERB def initialize(str, safe_level=nil, trim_mode=nil, eoutvar='_erbout') ... end end You mean, +eoutvar+? That's the name of the variable that ERB uses when it generates the Ruby code that corresponds to its input. That variable will be used to build the output. Try this: require 'erb' e = ERB.new( "One <%= ENV['HOME'] %> Two" ) p e.src You'll see a variable _erbout initialized to the empty string, and then the result of each operation concat'ed onto it. - Jamis -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis