summaryrefslogtreecommitdiff
path: root/lib/uri
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uri')
-rw-r--r--lib/uri/ftp.rb2
-rw-r--r--lib/uri/mailto.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/uri/ftp.rb b/lib/uri/ftp.rb
index fc22a99753..8183fbcd51 100644
--- a/lib/uri/ftp.rb
+++ b/lib/uri/ftp.rb
@@ -132,7 +132,7 @@ module URI
=begin
=end
- def to_str
+ def to_s
save_path = nil
if @typecode
save_path = @path
diff --git a/lib/uri/mailto.rb b/lib/uri/mailto.rb
index 0b0d0a5878..f01673fd63 100644
--- a/lib/uri/mailto.rb
+++ b/lib/uri/mailto.rb
@@ -217,7 +217,7 @@ module URI
v
end
- def to_str
+ def to_s
@scheme + ':' +
if @to
@to