# File lib/rexml/text.rb, line 293def write(writer,indent=-1,transitive=false,ie_hack=false)Kernel.warn("#{self.class.name}.write is deprecated. See REXML::Formatters",uplevel:1)formatter=ifindent>-1REXML::Formatters::Pretty.new(indent)elseREXML::Formatters::Default.newendformatter.write(self,writer)end