Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

Psych::Nodes::Stream

< Psych::Nodes::Node 1 instance methods 1 class methods

Represents a YAML stream. This is the root node for any YAML parse tree. This node must have one or more child nodes. The only valid child node for a Psych::Nodes::Stream node is Psych::Nodes::Document.

Class methods 1

Instance methods 1

Constants

ANY

Any encoding

UTF-16BE encoding

UTF-16LE encoding

UTF-8 encoding

Attributes
Read & Write

The encoding used for this stream