summaryrefslogtreecommitdiff
path: root/lib/uri
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-09 00:29:54 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-09 00:29:54 +0000
commite0b523d1a9fcd0a51c28c4601f76860e4169a921 (patch)
tree472669c9a5e8839b8f439d3dd8d94b7b85263496 /lib/uri
parent43a162962505207daf2da558117ca01e1221600f (diff)
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
Diffstat (limited to 'lib/uri')
-rw-r--r--lib/uri/ftp.rb4
1 files changed, 3 insertions, 1 deletions
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