Sha256: ea88707ddfa3a7030bba54ff305783612b36a09a99e4d052fc3162a6f3ae5741
Contents?: true
Size: 786 Bytes
Versions: 12
Compression:
Stored size: 786 Bytes
Contents
class BlankSlate #:nodoc: instance_methods.each { |m| undef_method m unless m =~ /^__/ } end # 1.8.6 has mistyping of transitive in if statement require "rexml/document" module REXML #:nodoc: class Document < Element #:nodoc: def write( output=$stdout, indent=-1, transitive=false, ie_hack=false ) if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output) output = Output.new( output, xml_decl.encoding ) end formatter = if indent > -1 if transitive REXML::Formatters::Transitive.new( indent, ie_hack ) else REXML::Formatters::Pretty.new( indent, ie_hack ) end else REXML::Formatters::Default.new( ie_hack ) end formatter.write( self, output ) end end end
Version data entries
12 entries across 12 versions & 7 rubygems