End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Psych::Streaming#start
start(encoding = Nodes::Stream::UTF8) { |self| ... }
ext/psych/lib/psych/streaming.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/ext/psych/lib/psych/streaming.rb, line 18
def start encoding = Nodes::Stream::UTF8
super.tap { yield self if block_given? }
ensure
finish if block_given?
end
Start streaming using encoding