mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/pathname/pathname.c (path_readlink): Pathname#readlink translated
from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec5bb26fa0
commit
8aa17733fa
3 changed files with 19 additions and 5 deletions
|
@ -512,9 +512,6 @@ end
|
|||
|
||||
class Pathname # * File *
|
||||
|
||||
# See <tt>File.readlink</tt>. Read symbolic link.
|
||||
def readlink() self.class.new(File.readlink(@path)) end
|
||||
|
||||
# See <tt>File.rename</tt>. Rename the file.
|
||||
def rename(to) File.rename(@path, to) end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue