Class REXML::Output
In: lib/rexml/output.rb
Parent: Object

Methods

<<   new   to_s  

Included Modules

Encoding

Attributes

encoding  [R] 

Public Class methods

[Source]

    # File lib/rexml/output.rb, line 9
 9:                 def initialize real_IO, encd="iso-8859-1"
10:                         @output = real_IO
11:                         self.encoding = encd
12: 
13:                         @to_utf = encd == UTF_8 ? false : true
14:                 end

Public Instance methods

[Source]

    # File lib/rexml/output.rb, line 16
16:                 def <<( content )
17:                         @output << (@to_utf ? self.encode(content) : content)
18:                 end

[Source]

    # File lib/rexml/output.rb, line 20
20:     def to_s
21:       "Output[#{encoding}]"
22:     end

[Validate]