APIdock / Ruby
/
method

link

ruby latest stable - Class: Pathname

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.

link(old)
public

Pathname#link is confusing and obsoleted because the receiver/argument order is inverted to corresponding system call.

# File lib/pathname.rb, line 873
 def link(old)
 warn 'Pathname#link is obsoleted. Use Pathname#make_link.'
 File.link(old, @path)
 end

AltStyle によって変換されたページ (->オリジナル) /