aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml/encodings/UTF-8.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/encodings/UTF-8.rb')
-rw-r--r--lib/rexml/encodings/UTF-8.rb18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/rexml/encodings/UTF-8.rb b/lib/rexml/encodings/UTF-8.rb
index 96fee4c4c0..33a7e490c4 100644
--- a/lib/rexml/encodings/UTF-8.rb
+++ b/lib/rexml/encodings/UTF-8.rb
@@ -1,11 +1,13 @@
module REXML
- module Encoding
- def encode content
- content
- end
+ module Encoding
+ @@__REXML_encoding_methods =<<-EOL
+ def encode content
+ content
+ end
- def decode(str)
- str
- end
- end
+ def decode(str)
+ str
+ end
+ EOL
+ end
end