diff --git a/lib/geocoder.rb b/lib/geocoder.rb index 33715dc065d230b071b511ad0eb9f833d02a0bb6..da924e15034fb07a482f848e1e5fbf436ebb39ce 100644 --- a/lib/geocoder.rb +++ b/lib/geocoder.rb @@ -72,6 +72,13 @@ module Geocoder @cache end + ## + # Array of valid Lookup names. + # + def valid_lookups + [:google, :yahoo, :geocoder_ca, :yandex, :freegeoip] + end + # exception classes class Error < StandardError; end @@ -121,13 +128,6 @@ module Geocoder end end - ## - # Array of valid Lookup names. - # - def valid_lookups - [:google, :yahoo, :geocoder_ca, :yandex, :freegeoip] - end - ## # Does the given value look like an IP address? # diff --git a/test/test_helper.rb b/test/test_helper.rb index 9e48f988360a5e31c1495ff4def79a303f74a3de..e638e780f36e8891a77b9471e0d6507f7f9022a5 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -203,7 +203,7 @@ class Test::Unit::TestCase end def all_lookups - Geocoder.send(:valid_lookups) + Geocoder.valid_lookups end def street_lookups