Sha256: 7e1e4635a022a762f95db499530ef47a09af1a351a84f1a79d6d8dcc57e6e9ef

Contents?: true

Size: 1.63 KB

Versions: 16

Compression:

Stored size: 1.63 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:
utime:@docstringIC:YARD::Docstring"ŒSets the access and modification times of each
named file to the first two arguments. Returns
the number of file names in the argument list.
:@objectu:YARD::StubProxyFile.utime:
@summary0:	@all"ĪSets the access and modification times of each
named file to the first two arguments. Returns
the number of file names in the argument list.


@overload utime(atime, mtime, file_name,...)
  @return [Integer]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;File.utime;;;IC;	"
;
u;File.utime;0;
"@return [Integer];[;[o:YARD::Tags::Tag
;
0;0:@types["Integer:
@text":@tag_name"return;0:@parameters[	[:
atime0[:
mtime0[:file_name0[:...0;0:@signature"'utime(atime, mtime, file_name,...);"
overload:@current_file_has_commentsF:@scope:
class;[:@docstring_extra0:@files[["file.c0:@namespaceu;	File:
@path"File.utime;[:@visibility:public:@source"Ļ/*
 * call-seq:
 *  File.utime(atime, mtime, file_name,...)   =>  integer
 *
 * Sets the access and modification times of each
 * named file to the first two arguments. Returns
 * the number of file names in the argument list.
 */

static VALUE
rb_file_s_utime(argc, argv)
    int argc;
    VALUE *argv;
{
    VALUE atime, mtime, rest;
    struct timeval tvs[2], *tvp = NULL;
    long n;

    rb_secure(2);
    rb_scan_args(argc, argv, "2*", &atime, &mtime, &rest);

    if (!NIL_P(atime) || !NIL_P(mtime)) {
    tvp = tvs;
    tvp[0] = rb_time_timeval(atime);
    tvp[1] = rb_time_timeval(mtime);
    }

    n = apply2files(utime_internal, rest, tvp);
    return LONG2FIX(n);
}:@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/utime_c.dat
pry-doc-0.5.0 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.4.6 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.4.5 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/File/utime_c.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/File/utime_c.dat