Sha256: be734f54f00262e723016ff3344cf8a0772d0e4ad3efc9b322e7ce65b4200451

Contents?: true

Size: 1.61 KB

Versions: 16

Compression:

Stored size: 1.61 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:grpowned?:@docstringIC:YARD::Docstring"ðReturns true if the effective group id of the process is the same as
the group id of <i>stat</i>. On Windows NT, returns <code>false</code>.

   File.stat("testfile").grpowned?      #=> true
   File.stat("/etc/passwd").grpowned?   #=> false
:@objectu:YARD::StubProxyFile::Stat#grpowned?:
@summary0:	@all"Returns true if the effective group id of the process is the same as
the group id of <i>stat</i>. On Windows NT, returns <code>false</code>.

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



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

static VALUE
rb_stat_grpowned(obj)
    VALUE obj;
{
#ifndef _WIN32
    if (group_member(get_stat(obj)->st_gid)) return Qtrue;
#endif
    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/grpowned_3F_i.dat
pry-doc-0.5.0 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.4.6 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.4.5 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/File/Stat/grpowned_3F_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/File/Stat/grpowned_3F_i.dat