Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more
Create a new streaming emitter. Emitter will
print to io. See Psych::Stream for
an example.
# File psych/lib/psych/streaming.rb, line 6
def initialize io
super({}, self.class.const_get(:Emitter).new(io))
end