method

symlink

v2_1_10 - Show latest stable - Class: File
symlink(p1, p2)
public

Creates a symbolic link called new_name for the existing file old_name. Raises a NotImplemented exception on platforms that do not support symbolic links.

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