Sha256: b019d7420f25951602ebbf12cf266f0648385509782905ec12d9779ef5be6857

Contents?: true

Size: 1.45 KB

Versions: 16

Compression:

Stored size: 1.45 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:owned?:@docstringIC:YARD::Docstring"ÈReturns <code>true</code> if the effective user id of the process is
the same as the owner of <i>stat</i>.

   File.stat("testfile").owned?      #=> true
   File.stat("/etc/passwd").owned?   #=> false
:@objectu:YARD::StubProxyFile::Stat#owned?:
@summary0:	@all"ðReturns <code>true</code> if the effective user id of the process is
the same as the owner of <i>stat</i>.

   File.stat("testfile").owned?      #=> true
   File.stat("/etc/passwd").owned?   #=> false



@overload owned?
  @return [Boolean]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;File::Stat#owned?;;;IC;	"
;
u;File::Stat#owned?;0;
"@return [Boolean];[;[o:YARD::Tags::Tag
;
0;0:@types["Boolean:
@text":@tag_name"return;0:@parameters[;0:@signature"owned?;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["file.c0:@namespaceu;File::Stat:
@path"File::Stat#owned?;[:@visibility:public:@source"©/*
 *  call-seq:
 *     stat.owned?    => true or false
 *  
 *  Returns <code>true</code> if the effective user id of the process is
 *  the same as the owner of <i>stat</i>.
 *     
 *     File.stat("testfile").owned?      #=> true
 *     File.stat("/etc/passwd").owned?   #=> false
 *     
 */

static VALUE
rb_stat_owned(obj)
    VALUE obj;
{
    if (get_stat(obj)->st_uid == geteuid()) return Qtrue;
    return Qfalse;
}:@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/owned_3F_i.dat
pry-doc-0.5.0 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.4.6 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.4.5 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/File/Stat/owned_3F_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/File/Stat/owned_3F_i.dat