Module: Psych::Streaming::ClassMethods (Ruby 2.5.7)
Description: Module : Psych::Streaming::ClassMethods - Ruby 2.5.7

### Home Classes Methods

### In Files

- psych/lib/psych/streaming.rb

### Methods

- #new

### Class/Module Index

Quicksearch

- Kernel
- Object
- Psych
- Psych::BadAlias
- Psych::ClassLoader
- Psych::ClassLoader::Restricted
- Psych::Coder
- Psych::DisallowedClass
- Psych::Emitter
- Psych::Exception
- Psych::Handler
- Psych::Handler::DumperOptions
- Psych::Handlers
- Psych::Handlers::Recorder
- Psych::JSON
- Psych::JSON::Stream
- Psych::JSON::TreeBuilder
- Psych::Nodes
- Psych::Nodes::Alias
- Psych::Nodes::Document
- Psych::Nodes::Mapping
- Psych::Nodes::Node
- Psych::Nodes::Scalar
- Psych::Nodes::Sequence
- Psych::Nodes::Stream
- Psych::Omap
- Psych::Parser
- Psych::Parser::Mark
- Psych::ScalarScanner
- Psych::Set
- Psych::Stream
- Psych::Streaming
- Psych::Streaming::ClassMethods
- Psych::SyntaxError
- Psych::TreeBuilder
- Psych::Visitors
- Psych::Visitors::DepthFirst
- Psych::Visitors::Emitter
- Psych::Visitors::JSONTree
- Psych::Visitors::NoAliasRuby
- Psych::Visitors::ToRuby
- Psych::Visitors::Visitor
- Psych::Visitors::YAMLTree
- Regexp

No matching classes.

# Psych::Streaming::ClassMethods

### Public Instance Methods

new(io) click to toggle source

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

                   # File 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