Method: IO#flush

Defined in:
io.c

#flushself

Flushes data buffered in self to the operating system (but does not necessarily flush data buffered in the operating system):

$stdout.print 'no newline' # Not necessarily flushed.
$stdout.flush              # Flushed.

Returns:

  • (self)


2405
2406
2407
2408
2409
# File 'io.c', line 2405

VALUE
rb_io_flush(VALUE io)
{
    return rb_io_flush_raw(io, 1);
}