module Psych::Streaming::ClassMethods - Documentation for Ruby 4.0
Description: Documentation for the Psych::Streaming::ClassMethods module
Keywords: ruby,module,Psych::Streaming::ClassMethods

🔍

No recent searches

# module Psych::Streaming::ClassMethods

### Public Instance Methods

new (io)
Source

    # File ext/psych/lib/psych/streaming.rb, line 8
    def new io
      emitter      = const_get(:Emitter).new(io)
      class_loader = ClassLoader.new
      ss           = ScalarScanner.new class_loader
      super(emitter, ss, {})
    end

Create a new streaming emitter. `Emitter` will print to `io`. See `Psych::Stream` for an example.

Calls superclass method