Skip to content
Snippets Groups Projects
Commit 658b7fa0 authored by Alex Reisner's avatar Alex Reisner
Browse files

Make valid_lookups public.

parent 060c13f2
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,13 @@ module Geocoder ...@@ -72,6 +72,13 @@ module Geocoder
@cache @cache
end end
##
# Array of valid Lookup names.
#
def valid_lookups
[:google, :yahoo, :geocoder_ca, :yandex, :freegeoip]
end
# exception classes # exception classes
class Error < StandardError; end class Error < StandardError; end
...@@ -121,13 +128,6 @@ module Geocoder ...@@ -121,13 +128,6 @@ module Geocoder
end end
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? # Does the given value look like an IP address?
# #
......
...@@ -203,7 +203,7 @@ class Test::Unit::TestCase ...@@ -203,7 +203,7 @@ class Test::Unit::TestCase
end end
def all_lookups def all_lookups
Geocoder.send(:valid_lookups) Geocoder.valid_lookups
end end
def street_lookups def street_lookups
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment