summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/stream.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych/lib/psych/stream.rb')
-rw-r--r--ext/psych/lib/psych/stream.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/lib/psych/stream.rb b/ext/psych/lib/psych/stream.rb
index ac231aafdc..508483e573 100644
--- a/ext/psych/lib/psych/stream.rb
+++ b/ext/psych/lib/psych/stream.rb
@@ -35,7 +35,7 @@ module Psych
# Create a new streaming emitter. Emitter will print to +io+. See
# Psych::Stream for an example.
def initialize io
- super({}, Emitter.new(io))
+ super({}, self.class.const_get(:Emitter).new(io))
end
###