From 658b7fa0e56b5eb9342bb94b1f2d51113be717fd Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Thu, 21 Apr 2011 23:58:54 -0400 Subject: [PATCH] Make valid_lookups public. --- lib/geocoder.rb | 14 +++++++------- test/test_helper.rb | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/geocoder.rb b/lib/geocoder.rb index 33715dc0..da924e15 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 9e48f988..e638e780 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 -- GitLab