Sha256: 11099585c3fabca1e5eb1fed5ad305114fa954aaf0749b6656ce0fcd5ef96849
Contents?: true
Size: 409 Bytes
Versions: 143
Compression:
Stored size: 409 Bytes
Contents
require 'rexml/encoding' module REXML class Output include Encoding attr_reader :encoding def initialize real_IO, encd="iso-8859-1" @output = real_IO self.encoding = encd @to_utf = encd == UTF_8 ? false : true end def <<( content ) @output << (@to_utf ? self.encode(content) : content) end def to_s "Output[#{encoding}]" end end end
Version data entries
143 entries across 143 versions & 3 rubygems