summaryrefslogtreecommitdiff
path: root/lib/uri
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-12 04:46:27 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-12 04:46:27 +0000
commit52f9d387e6963d6ffe37ebebcced2dc1c993d891 (patch)
treef4efff85ce9888e9ca86cd8fc409c65c75397de8 /lib/uri
parenta3af2d1edbd567ab0fbef61f1c241e6aea76fe18 (diff)
* lib/uri/mailto.rb: Removed needless `return` and use `.`` instead of `::`
with class method. * test/uri/test_mailto.rb: Added tests for coverage. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri')
-rw-r--r--lib/uri/mailto.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/uri/mailto.rb b/lib/uri/mailto.rb
index 7299550d3f..b9e98e66bb 100644
--- a/lib/uri/mailto.rb
+++ b/lib/uri/mailto.rb
@@ -84,7 +84,7 @@ module URI
# puts m3.to_s -> mailto:listman@example.com?subject=subscribe
#
def self.build(args)
- tmp = Util::make_components_hash(self, args)
+ tmp = Util.make_components_hash(self, args)
case tmp[:to]
when Array
@@ -118,7 +118,7 @@ module URI
end
end
- return super(tmp)
+ super(tmp)
end
#
@@ -187,7 +187,7 @@ module URI
end
end
- return true
+ true
end
private :check_to
@@ -214,7 +214,7 @@ module URI
"bad component(expected opaque component): #{v}"
end
- return true
+ true
end
private :check_headers
@@ -282,7 +282,7 @@ module URI
end
end
- return "To: #{to}
+ "To: #{to}
#{head}
#{body}
"