flush

ios.flush รข ios
Instance Public methods

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
doc_ruby_on_rails
2015-04-13 11:42:07
Comments
Leave a Comment

Please login to continue.