Method: Path#make_symlink

Defined in:
lib/path/file.rb

Creates a symbolic link to target and returns self.

Raises Errno::EEXIST if self already exist. See File.symlink (arguments are swapped).



85
86
87
88
# File 'lib/path/file.rb', line 85

def make_symlink(target)
  File.symlink(target, @path)
  self
end