summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/nodes/stream.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych/nodes/stream.rb b/lib/psych/nodes/stream.rb
index f4aab5a..7cf5e03 100644
--- a/lib/psych/nodes/stream.rb
+++ b/lib/psych/nodes/stream.rb
@@ -21,7 +21,7 @@ module Psych
UTF16BE = Psych::Parser::UTF16BE
# The encoding used for this stream
- attr_reader :encoding
+ attr_accessor :encoding
###
# Create a new Psych::Nodes::Stream node with an +encoding+ that