Sha256: 6683f4ba0a8f11f193d2cc42f4ce897cb1c11ee387839b23d410e07b51cafecf

Contents?: true

Size: 1.43 KB

Versions: 16

Compression:

Stored size: 1.43 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:socket?:@docstringIC:YARD::Docstring"»Returns <code>true</code> if <i>stat</i> is a socket,
<code>false</code> if it isn't or if the operating system doesn't
support this feature.

   File.stat("testfile").socket?   #=> false
:@objectu:YARD::StubProxyFile::Stat#socket?:
@summary0:	@all"äReturns <code>true</code> if <i>stat</i> is a socket,
<code>false</code> if it isn't or if the operating system doesn't
support this feature.

   File.stat("testfile").socket?   #=> false



@overload socket?
  @return [Boolean]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;File::Stat#socket?;;;IC;	"
;
u;File::Stat#socket?;0;
"@return [Boolean];[;[o:YARD::Tags::Tag
;
0;0:@types["Boolean:
@text":@tag_name"return;0:@parameters[;0:@signature"socket?;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["file.c0:@namespaceu;File::Stat:
@path"File::Stat#socket?;[:@visibility:public:@source"¯/*
 *  call-seq:
 *     stat.socket?    => true or false
 *  
 *  Returns <code>true</code> if <i>stat</i> is a socket,
 *  <code>false</code> if it isn't or if the operating system doesn't
 *  support this feature.
 *     
 *     File.stat("testfile").socket?   #=> false
 *     
 */

static VALUE
rb_stat_S(obj)
    VALUE obj;
{
#ifdef S_ISSOCK
    if (S_ISSOCK(get_stat(obj)->st_mode)) 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/socket_3F_i.dat
pry-doc-0.5.0 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.4.6 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.4.5 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/File/Stat/socket_3F_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/File/Stat/socket_3F_i.dat