From: Christian Cantrell Date: 2006-02-13T06:14:03+09:00 Subject: Trouble calling unnormalize I'm trying to use the unnormalize method of the Text class in the REXML module to un-escape some XML, but I'm getting this error: /usr/local/lib/ruby/1.8/rexml/text.rb:304:in `unnormalize': private method `gsub!' called for # (NoMethodError) The code for the unnormalize method looks like this: def Text::unnormalize( string, doctype=nil, filter=nil, illegal=nil ) rv = string.clone rv.gsub!( /\r\n?/, "\n" ) ... Any ideas as to why Ruby thinks gsub! is private, and why I can't call the method? Thanks, Christian