зеркало из https://github.com/github/ruby.git
Finish docs for URI::FTP by @darkhelmet [fix GH-274]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
43a1629625
Коммит
e0b523d1a9
|
@ -165,7 +165,7 @@ module URI
|
|||
end
|
||||
private :check_typecode
|
||||
|
||||
# private setter for the typecode +v+
|
||||
# Private setter for the typecode +v+
|
||||
#
|
||||
# see also URI::FTP.typecode=
|
||||
#
|
||||
|
@ -234,11 +234,13 @@ module URI
|
|||
return @path.sub(/^\//,'').sub(/^%2F/,'/')
|
||||
end
|
||||
|
||||
# Private setter for the path of the URI::FTP
|
||||
def set_path(v)
|
||||
super("/" + v.sub(/^\//, "%2F"))
|
||||
end
|
||||
protected :set_path
|
||||
|
||||
# Returns a String representation of the URI::FTP
|
||||
def to_s
|
||||
save_path = nil
|
||||
if @typecode
|
||||
|
|
Загрузка…
Ссылка в новой задаче