Sha256: 85b0ce44bfca7a4bcbec74e5ba3d200839cdcf8cfc1b1147cb4aa1d61cd55847

Contents?: true

Size: 1.88 KB

Versions: 12

Compression:

Stored size: 1.88 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"
IO#flush:EF:@parameters[:@files[[I"	io.c;T0:@current_file_has_commentsF:
@name:
flush:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"ùFlushes any buffered data within <em>ios</em> 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

<em>produces:</em>

   no newline;F:@objectIu:YARD::StubProxy
IO#flush;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"
flush;F;IC;";F;Iu;
IO#flush;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"IO;F;0:	@allI"@return [IO];F;[;Iu;
IO#flush;F; I"Flushes any buffered data within <em>ios</em> 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

<em>produces:</em>

   no newline


@overload flush
  @return [IO];F:@namespaceIu;IO;F:@docstring_extra0:@sourceI"ó/*
 *  call-seq:
 *     ios.flush    -> ios
 *
 *  Flushes any buffered data within <em>ios</em> 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
 *
 *  <em>produces:</em>
 *
 *     no newline
 */

VALUE
rb_io_flush(VALUE io)
{
    rb_io_t *fptr;

    if (TYPE(io) != T_FILE) {
        return rb_funcall(io, id_flush, 0);
    }

    io = GetWriteIO(io);
    GetOpenFile(io, fptr);

    if (fptr->mode & FMODE_WRITABLE) {
        if (io_fflush(fptr) < 0)
            rb_sys_fail(0);
#ifdef _WIN32
    fsync(fptr->fd);
#endif
    }
    if (fptr->mode & FMODE_READABLE) {
        io_unread(fptr);
    }

    return io;
};F

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/IO/flush_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/IO/flush_i.dat