[Groonga-commit] groonga/groonga [master] Don't use :: for method reference

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Nov 13 17:21:50 JST 2012


Kouhei Sutou	2012-11-13 17:21:50 +0900 (Tue, 13 Nov 2012)

  New Revision: 61b62eecb0a7cac6cedf8116a6253dd6d5265686
  https://github.com/groonga/groonga/commit/61b62eecb0a7cac6cedf8116a6253dd6d5265686

  Log:
    Don't use :: for method reference

  Modified files:
    test/command/tools/geo/generate-grntest-data.rb

  Modified: test/command/tools/geo/generate-grntest-data.rb (+3 -3)
===================================================================
--- test/command/tools/geo/generate-grntest-data.rb    2012-11-13 17:15:28 +0900 (b72db6d)
+++ test/command/tools/geo/generate-grntest-data.rb    2012-11-13 17:21:50 +0900 (8320c24)
@@ -45,8 +45,8 @@ module Geokit
         from = Geokit::LatLng.normalize(from)
         to = Geokit::LatLng.normalize(to)
         return 0.0 if from == to # fixes a "zero-distance" bug
-        units = options[:units] || Geokit::default_units
-        formula = options[:formula] || Geokit::default_formula
+        units = options[:units] || Geokit.default_units
+        formula = options[:formula] || Geokit.default_formula
         case formula
         when :sphere
           error_classes = [Errno::EDOM]
@@ -873,7 +873,7 @@ class GrnTestData
   end
 
   def check_distance_by_geokit(distance)
-    Geokit::default_formula = :flat
+    Geokit.default_formula = :flat
     latlng_start = Geokit::LatLng.new(@latitude_start_degree, @longitude_start_degree)
     latlng_end = Geokit::LatLng.new(@latitude_end_degree, @longitude_end_degree)
     geokit_distance = latlng_end.distance_from(latlng_start) * 1609.344
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index