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