[Bug #553] REXML::Document#write(io, 1, true, true) #=> NameError/ArgumentError

Bug #553: REXML::Document#write(io, 1, true, true) #=>
NameError/ArgumentError
http://redmine.ruby-lang.org/issues/show/553

e$B5/I<<Te(B: akira yamada
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: lib

e$B0J2<$Ge(BNameErrore$B$K$J$j$^$9!#e(B

require “rexml/document”
=> true

REXML::Document.new("").write($stdout, 1, true, true)
NameError: uninitialized constant REXML::Formatters::Transitive
from /home/akira/src/ruby/ruby/lib/rexml/document.rb:189:in write' from (irb):2 from bin/irb:12:in

[email protected]<(E*$Ke(Brexml/formatters/transitivee$B$re(Brequiree$B$7$F$be(BArgumentErrore$B$K$J$j$^$9!#e(B

require “rexml/document”
=> true

require “rexml/formatters/transitive”
=> true

REXML::Document.new("").write($stdout, 1, true, true)
ArgumentError: wrong number of arguments (2 for 1)
from /home/akira/src/ruby/ruby/lib/rexml/document.rb:189:in new' from /home/akira/src/ruby/ruby/lib/rexml/document.rb:189:inwrite’
from (irb):4
from bin/irb:12:in `’

ruby_1_8e$B$bF1$8$G$9!#e(B

e$BE:IU$7$?%Q%C%A$G2sHr$G$-$^$9!#e(B

e$B%A%1%C%He(B #553 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r20620.

http://redmine.ruby-lang.org/issues/show/553

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs