End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
PrettyPrint#flush
flush
lib/prettyprint.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/prettyprint.rb, line 288
def flush
@buffer.each {|data|
@output_width = data.output(@output, @output_width)
}
@buffer.clear
@buffer_width = 0
end
outputs buffered data.