In IO::Handle§
See primary documentation in context for method flush
method flush(IO::Handle: --> True)
Will flush the handle, writing any of the buffered data. Returns True
on success; otherwise, fails with X::IO::Flush
.
given "foo".IO.open: :w