Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Psych::Handler#start_stream

start_stream(encoding)

Called with encoding when the YAML stream starts. This method is called once per stream. A stream may contain multiple documents.

See the constants in Psych::Parser for the possible values of encoding.

See also #start_sequence #streaming? #start_mapping also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0