From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2010-04-25T17:55:14+09:00 Subject: Rexml pretty printing "can't modify frozen string" i want to use (ruby 1.9) Formatters::Pretty 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('',{:raw=>:all}) [...] fmt = Formatters::Pretty.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 ? -- � Il y a tellement de choses plus importantes dans la vie que l'argent, mais il faut tellement d'argent pour les acqu�rir. � (Groucho Marx)