method
encoding=
encoding=( enc )
public
Hide source
# File lib/rexml/xmldecl.rb, line 75 def encoding=( enc ) if enc.nil? self.old_enc = "UTF-8" @writeencoding = false else self.old_enc = enc @writeencoding = true end self.dowrite end