diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-12 04:46:27 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-12 04:46:27 +0000 |
commit | 283de5af02cad8141f3c28d57b0d0855e71b9148 (patch) | |
tree | f4efff85ce9888e9ca86cd8fc409c65c75397de8 /lib/uri | |
parent | 686233ef3ef09927234aacfd75b6f2b4a59f6447 (diff) | |
download | ruby-283de5af02cad8141f3c28d57b0d0855e71b9148.tar.gz |
* 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.rb | 10 |
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} " |