зеркало из https://github.com/github/ruby.git
* lib/pathname.rb (Pathname#realpath): obsolete the force_absolute
argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
42bca643c3
Коммит
7754869905
|
@ -1,3 +1,8 @@
|
|||
Fri Nov 28 15:41:15 2003 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* lib/pathname.rb (Pathname#realpath): obsolete the force_absolute
|
||||
argument.
|
||||
|
||||
Fri Nov 28 14:41:52 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||
|
||||
* lib/soap/streamHandler.rb: drop unused http parameters.
|
||||
|
|
|
@ -109,10 +109,12 @@ class Pathname
|
|||
# realpath returns a real pathname of self in actual filesystem.
|
||||
# The real pathname doesn't contain a symlink and useless dots.
|
||||
#
|
||||
# If false is given for the optional argument force_absolute,
|
||||
# it may return relative pathname.
|
||||
# Otherwise it returns absolute pathname.
|
||||
# It returns absolute pathname.
|
||||
def realpath(force_absolute=true)
|
||||
unless force_absolute
|
||||
warn "Pathname#realpath's force_absolute argument is obsoleted."
|
||||
end
|
||||
|
||||
if %r{\A/} =~ @path
|
||||
top = '/'
|
||||
unresolved = @path.scan(%r{[^/]+})
|
||||
|
|
Загрузка…
Ссылка в новой задаче