Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Psych::Handler#start_stream
start_stream(encoding)
ext/psych/lib/psych/handler.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/ext/psych/lib/psych/handler.rb, line 47
def start_stream encoding
end
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.