aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml/output.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/output.rb')
-rw-r--r--lib/rexml/output.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/rexml/output.rb b/lib/rexml/output.rb
index c4a7473bfb..be4d23d42d 100644
--- a/lib/rexml/output.rb
+++ b/lib/rexml/output.rb
@@ -3,7 +3,9 @@ require 'rexml/encoding'
module REXML
class Output
include Encoding
- attr_reader :encoding
+
+ attr_reader :encoding
+
def initialize real_IO, encd="iso-8859-1"
@output = real_IO
self.encoding = encd
@@ -12,7 +14,11 @@ module REXML
end
def <<( content )
- @output << (@to_utf ? encode(content) : content)
+ @output << (@to_utf ? self.encode(content) : content)
end
+
+ def to_s
+ "Output[#{encoding}]"
+ end
end
end