summaryrefslogtreecommitdiff
path: root/lib/custodian/util/bytemark.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
commit2921a7c7b8ab27350108ae0e678947085ded7b94 (patch)
tree45f8d2a48cf2d0ff37f1a1e18c736bd68f090b99 /lib/custodian/util/bytemark.rb
parent7473d89d4cb01a50921b9edcd262838b1adff437 (diff)
Don't use "::" for method-calls.
Instead prefer ".". Flagged by rubocop
Diffstat (limited to 'lib/custodian/util/bytemark.rb')
-rw-r--r--lib/custodian/util/bytemark.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/util/bytemark.rb b/lib/custodian/util/bytemark.rb
index 9753c18..c821b18 100644
--- a/lib/custodian/util/bytemark.rb
+++ b/lib/custodian/util/bytemark.rb
@@ -26,7 +26,7 @@ module Custodian
#
# Is the named target inside the Bytemark IP-range?
#
- def Bytemark.inside?( target )
+ def self.inside?( target )
inside = false
if ( BYTEMARK_RANGES.any?{|range| range.include?(IPAddr.new(target))} )