Sha256: 87b22ce2fc3583aa40a0212a4374e33b89b775a3d9ae1bb627bdd5fafb896c4c

Contents?: true

Size: 1.31 KB

Versions: 16

Compression:

Stored size: 1.31 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:	stat:@docstringIC:YARD::Docstring"Returns a <code>File::Stat</code> object for the named file (see
<code>File::Stat</code>).

   File.stat("testfile").mtime   #=> Tue Apr 08 12:58:04 CDT 2003
:@objectu:YARD::StubProxyFile.stat:
@summary0:	@all"Returns a <code>File::Stat</code> object for the named file (see
<code>File::Stat</code>).

   File.stat("testfile").mtime   #=> Tue Apr 08 12:58:04 CDT 2003



@overload stat(file_name):@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;File.stat;;;IC;	"
;
u;File.stat;0;
";[;[:@types0:@parameters[[:file_name0:
@text0:@signature"stat(file_name):@tag_name"
overload:@current_file_has_commentsF:@scope:
class;[:@docstring_extra0:@files[["file.c0:@namespaceu;	File:
@path"File.stat;[:@visibility:public:@source"/*
 *  call-seq:
 *     File.stat(file_name)   =>  stat
 *  
 *  Returns a <code>File::Stat</code> object for the named file (see
 *  <code>File::Stat</code>).
 *     
 *     File.stat("testfile").mtime   #=> Tue Apr 08 12:58:04 CDT 2003
 *     
 */

static VALUE
rb_file_s_stat(klass, fname)
    VALUE klass, fname;
{
    struct stat st;

    SafeStringValue(fname);
    if (rb_stat(fname, &st) < 0) {
    rb_sys_fail(StringValueCStr(fname));
    }
    return stat_new(&st);
}:@source_type:c

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
pry-doc-0.5.1 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.5.0 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.4.6 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.4.5 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/File/stat_c.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/File/stat_c.dat