[Groonga-commit] droonga/fluent-plugin-droonga at e4636ea [master] Extract path method

Back to archive index

Yoji Shidara null+****@clear*****
Thu Jan 23 18:22:22 JST 2014


Yoji Shidara	2014-01-23 18:22:22 +0900 (Thu, 23 Jan 2014)

  New Revision: e4636eaa2a1b7c7f9b6b359c4f389b643af6ba27
  https://github.com/droonga/fluent-plugin-droonga/commit/e4636eaa2a1b7c7f9b6b359c4f389b643af6ba27

  Message:
    Extract path method

  Modified files:
    lib/droonga/catalog.rb

  Modified: lib/droonga/catalog.rb (+6 -3)
===================================================================
--- lib/droonga/catalog.rb    2014-01-23 18:20:58 +0900 (fec6dfc)
+++ lib/droonga/catalog.rb    2014-01-23 18:22:22 +0900 (066d162)
@@ -28,12 +28,15 @@ module Droonga
     DEFAULT_PATH = "catalog.json"
 
     class << self
-      def load(path=nil)
-        path = ENV["DROONGA_CATALOG"] || DEFAULT_PATH
-        path = File.expand_path(path)
+      def load
         loader = CatalogLoader.new(path)
         loader.load
       end
+
+      def path
+        path = ENV["DROONGA_CATALOG"] || DEFAULT_PATH
+        File.expand_path(path)
+      end
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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