From e0b523d1a9fcd0a51c28c4601f76860e4169a921 Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 9 Apr 2013 00:29:54 +0000 Subject: [PATCH] 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 --- lib/uri/ftp.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/uri/ftp.rb b/lib/uri/ftp.rb index 9153c88636..0c5b13a1b7 100644 --- a/lib/uri/ftp.rb +++ b/lib/uri/ftp.rb @@ -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