Sha256: 1c99c25bf539544f17db7790a2b8e71cb87771966a12d066aecce4a8851d2849

Contents?: true

Size: 1.41 KB

Versions: 16

Compression:

Stored size: 1.41 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:directory?:@docstringIC:YARD::Docstring"¶Returns <code>true</code> if <i>stat</i> is a directory,
<code>false</code> otherwise.

   File.stat("testfile").directory?   #=> false
   File.stat(".").directory?          #=> true
:@objectu:YARD::StubProxyFile::Stat#directory?:
@summary0:	@all"áReturns <code>true</code> if <i>stat</i> is a directory,
<code>false</code> otherwise.

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


@overload directory?
  @return [Boolean]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;File::Stat#directory?;;;IC;	"
;
u;File::Stat#directory?;0;
"@return [Boolean];[;[o:YARD::Tags::Tag
;
0;0:@types["Boolean:
@text":@tag_name"return;0:@parameters[;0:@signature"directory?;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["file.c0:@namespaceu;File::Stat:
@path"File::Stat#directory?;[:@visibility:public:@source"‹/*
 *  call-seq:
 *     stat.directory?   => true or false
 *  
 *  Returns <code>true</code> if <i>stat</i> is a directory,
 *  <code>false</code> otherwise.
 *     
 *     File.stat("testfile").directory?   #=> false
 *     File.stat(".").directory?          #=> true
 */

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