= private = protected
encoding=(enc)
Inherited from Encoding Overridden to support optimized en/decoding
# File lib/rexml/source.rb, line 54 def encoding=(enc) return unless super @line_break = encode( '>' ) if @encoding != 'UTF-8' @buffer = decode(@buffer) @to_utf = true else @to_utf = false @buffer.force_encoding ::Encoding::UTF_8 end end