summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/mx.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:03:12 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:03:12 +0000
commit8e2b9d6c2dfe0cf399cffe81b200594610bc2446 (patch)
treec6fcf5561041677f714ed21e037ef37aaa44e76f /lib/custodian/protocoltest/mx.rb
parent34908abb790b8e1cd3abe618c6c9f54b23d673b5 (diff)
Don't use "::" for method-calls.
Instead prefer ".". Flagged by rubocop
Diffstat (limited to 'lib/custodian/protocoltest/mx.rb')
-rw-r--r--lib/custodian/protocoltest/mx.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/mx.rb b/lib/custodian/protocoltest/mx.rb
index 8f260f9..c05283d 100644
--- a/lib/custodian/protocoltest/mx.rb
+++ b/lib/custodian/protocoltest/mx.rb
@@ -73,7 +73,7 @@ module Custodian
Resolv::DNS.open do |dns|
ress = dns.getresources(@host, Resolv::DNS::Resource::IN::MX)
- ress.map { |r| mx.push( IPSocket::getaddress(r.exchange.to_s) ) }
+ ress.map { |r| mx.push( IPSocket.getaddress(r.exchange.to_s) ) }
end
end
rescue Timeout::Error => e