U
Une Bévue
i want to use (ruby 1.9) Formatters:retty and i get the error :
/opt/local/lib/ruby1.9/1.9.1/rexml/formatters/pretty.rb:90:in
`squeeze!': can't modify frozen string (RuntimeError)
then, i look if my strings are frozen :
doc = Document.new('<html></html>',{:raw=>:all})
[...]
fmt = Formatters:retty.new 2
s = String.new
puts s.frozen?
puts doc.frozen?
docs = doc.dup
puts docs.frozen?
fmt.write(docs, s)
puts s
for all s, doc and docs i get false to #.frozen?
what isn't working here ?
/opt/local/lib/ruby1.9/1.9.1/rexml/formatters/pretty.rb:90:in
`squeeze!': can't modify frozen string (RuntimeError)
then, i look if my strings are frozen :
doc = Document.new('<html></html>',{:raw=>:all})
[...]
fmt = Formatters:retty.new 2
s = String.new
puts s.frozen?
puts doc.frozen?
docs = doc.dup
puts docs.frozen?
fmt.write(docs, s)
puts s
for all s, doc and docs i get false to #.frozen?
what isn't working here ?