Sha256: eac49296fcd9096a46061285d5024bf158a07e0e18074c0df10d64a1471d88c9

Contents?: true

Size: 1.66 KB

Versions: 12

Compression:

Stored size: 1.66 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"IO#pos:EF:@parameters[:@files[[I"	io.c;T0:@current_file_has_commentsF:
@name:pos:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"Returns the current offset (in bytes) of <em>ios</em>.

   f = File.new("testfile")
   f.pos    #=> 0
   f.gets   #=> "This is line one\n"
   f.pos    #=> 17;F:@objectIu:YARD::StubProxyIO#pos;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"pos;F;IC;";F;Iu;IO#pos;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"Integer;F;0:	@allI"@return [Integer];F;[;Iu;IO#pos;Fo;
;I"
overload;F;0;:	tell;0;I"	tell;F;IC;";F;Iu;IO#pos;F;0;[;[o;
;I"return;F;I";F;0;[I"Integer;F;0; I"@return [Integer];F;[;Iu;IO#pos;F; I"Returns the current offset (in bytes) of <em>ios</em>.

   f = File.new("testfile")
   f.pos    #=> 0
   f.gets   #=> "This is line one\n"
   f.pos    #=> 17


@overload pos
  @return [Integer]
@overload tell
  @return [Integer];F:@namespaceIu;IO;F:@docstring_extra0:@sourceI"/*
 *  call-seq:
 *     ios.pos     -> integer
 *     ios.tell    -> integer
 *
 *  Returns the current offset (in bytes) of <em>ios</em>.
 *
 *     f = File.new("testfile")
 *     f.pos    #=> 0
 *     f.gets   #=> "This is line one\n"
 *     f.pos    #=> 17
 */

static VALUE
rb_io_tell(VALUE io)
{
    rb_io_t *fptr;
    off_t pos;

    GetOpenFile(io, fptr);
    pos = io_tell(fptr);
    if (pos < 0 && errno) rb_sys_fail_path(fptr->pathv);
    pos -= fptr->rbuf_len;
    return OFFT2NUM(pos);
};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/pos_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/IO/pos_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/IO/pos_i.dat