Sha256: ccd6b1d50de1882e498ddc94846651def071832bfe612c14505cda447d6968fc
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
rubysl-rexml-1.0.0 | lib/rexml/output.rb |
ruby_on_ruby-0.0.1 | vendor/javascripts/emscripted-ruby/lib/rexml/output.rb |