Sha256: 90b46c22e599de0d701aaac98c4d1b363403fc1e1674c47c1f01d895994b4f4d

Contents?: true

Size: 1.78 KB

Versions: 16

Compression:

Stored size: 1.78 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:symlink:@docstringIC:YARD::Docstring"çCreates a symbolic link called <i>new_name</i> for the existing file
<i>old_name</i>. Raises a <code>NotImplemented</code> exception on
platforms that do not support symbolic links.

   File.symlink("testfile", "link2test")   #=> 0
:@objectu:YARD::StubProxyFile.symlink:
@summary0:	@all"Creates a symbolic link called <i>new_name</i> for the existing file
<i>old_name</i>. Raises a <code>NotImplemented</code> exception on
platforms that do not support symbolic links.

   File.symlink("testfile", "link2test")   #=> 0



@overload symlink(old_name, new_name)
  @return [0]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;File.symlink;;;IC;	"
;
u;File.symlink;0;
"@return [0];[;[o:YARD::Tags::Tag
;
0;0:@types["0:
@text":@tag_name"return;0:@parameters[[:
old_name0[:
new_name0;0:@signature" symlink(old_name, new_name);"
overload:@current_file_has_commentsF:@scope:
class;[:@docstring_extra0:@files[["file.c0:@namespaceu;	File:
@path"File.symlink;[:@visibility:public:@source"¯/*
 *  call-seq:
 *     File.symlink(old_name, new_name)   => 0
 *  
 *  Creates a symbolic link called <i>new_name</i> for the existing file
 *  <i>old_name</i>. Raises a <code>NotImplemented</code> exception on
 *  platforms that do not support symbolic links.
 *     
 *     File.symlink("testfile", "link2test")   #=> 0
 *     
 */

static VALUE
rb_file_s_symlink(klass, from, to)
    VALUE klass, from, to;
{
#ifdef HAVE_SYMLINK
    SafeStringValue(from);
    SafeStringValue(to);

    if (symlink(StringValueCStr(from), StringValueCStr(to)) < 0) {
    sys_fail2(from, to);
    }
    return INT2FIX(0);
#else
    rb_notimplement();
    return Qnil;        /* not reached */
#endif
}:@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/symlink_c.dat
pry-doc-0.5.0 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.4.6 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.4.5 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/File/symlink_c.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/File/symlink_c.dat