Sha256: ebf65109abd02e45eb8792a374146a09f3d6045542b46222e7c39813dc862751

Contents?: true

Size: 1.95 KB

Versions: 12

Compression:

Stored size: 1.95 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"
IO#write:EF:@parameters[:@files[[I"	io.c;T0:@current_file_has_commentsF:
@name:
write:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"mWrites the given string to <em>ios</em>. The stream must be opened
for writing. If the argument is not a string, it will be converted
to a string using <code>to_s</code>. Returns the number of bytes
written.

   count = $stdout.write( "This is a test\n" )
   puts "That was #{count} bytes of data"

<em>produces:</em>

   This is a test
   That was 15 bytes of data;F:@objectIu:YARD::StubProxy
IO#write;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"write(string);F;IC;";F;Iu;
IO#write;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"Integer;F;0:	@allI"@return [Integer];F;[[:string0;Iu;
IO#write;F; I"›Writes the given string to <em>ios</em>. The stream must be opened
for writing. If the argument is not a string, it will be converted
to a string using <code>to_s</code>. Returns the number of bytes
written.

   count = $stdout.write( "This is a test\n" )
   puts "That was #{count} bytes of data"

<em>produces:</em>

   This is a test
   That was 15 bytes of data


@overload write(string)
  @return [Integer];F:@namespaceIu;IO;F:@docstring_extra0:@sourceI")/*
 *  call-seq:
 *     ios.write(string)    -> integer
 *
 *  Writes the given string to <em>ios</em>. The stream must be opened
 *  for writing. If the argument is not a string, it will be converted
 *  to a string using <code>to_s</code>. Returns the number of bytes
 *  written.
 *
 *     count = $stdout.write( "This is a test\n" )
 *     puts "That was #{count} bytes of data"
 *
 *  <em>produces:</em>
 *
 *     This is a test
 *     That was 15 bytes of data
 */

static VALUE
io_write_m(VALUE io, VALUE str)
{
    return io_write(io, str, 0);
};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/write_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/IO/write_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/IO/write_i.dat