Windows One-Click installer Ruby 1.8.6 patchlevel 111.
I have code that uses REXML to emit an XML document and when I run it on
1.8.6 (upgraded) from 1.8.4, I see the error “undefined local variable”.
if I look in the Document.write method, I see a variable “transitive”
that should be named “trans”.
def write( output=$stdout, indent=-1, trans=false, ie_hack=false )
if xml_decl.encoding != “UTF-8” && !output.kind_of?(Output)
output = Output.new( output, xml_decl.encoding )
formatter = if indent > -1
REXML::Formatters::Transitive.new( indent, ie_hack )
REXML::Formatters::Pretty.new( indent, ie_hack )
REXML::Formatters::Default.new( ie_hack )
formatter.write( self, output )
This is also referenced in this thread from last October:
Is there an updated set of REXML standard library files that I can
download. I assume that this is fixed already in the standard lib
What is the best way to resolve this?