flush()
public
Flushes any buffered data within ios to the underlying operating
system (note that this is Ruby
internal buffering only; the OS may buffer the data as well).
$stdout.print "no newline"
$stdout.flush
produces:
no newline
Show source
VALUE
rb_io_flush(VALUE io)
{
return rb_io_flush_raw(io, 1);
}