From 283de5af02cad8141f3c28d57b0d0855e71b9148 Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 12 Sep 2016 04:46:27 +0000 Subject: * 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 --- lib/uri/mailto.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') 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} " -- cgit v1.2.3