[Groonga-commit] droonga/fluent-plugin-droonga at 093b4e5 [master] Use contextual variable name

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Sep 30 12:10:10 JST 2013


YUKI Hiroshi	2013-09-30 12:10:10 +0900 (Mon, 30 Sep 2013)

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

  Message:
    Use contextual variable name

  Modified files:
    lib/droonga/catalog.rb

  Modified: lib/droonga/catalog.rb (+3 -3)
===================================================================
--- lib/droonga/catalog.rb    2013-09-30 12:09:16 +0900 (6842158)
+++ lib/droonga/catalog.rb    2013-09-30 12:10:10 +0900 (7e3ff43)
@@ -29,9 +29,9 @@ module Droonga
     CATALOG_FILE_PATH = "catalog.json"
 
     def initialize(path=nil)
-      @catalog_path = path || default_path
+      @path = path || default_path
 
-      open(@catalog_path) do |file|
+      open(@path) do |file|
         @catalog = JSON.parse(file.read)
       end
       @catalog["datasets"].each do |name, dataset|
@@ -54,7 +54,7 @@ module Droonga
     end
 
     def base_path
-      @base_path ||= File.dirname(@catalog_path)
+      @base_path ||= File.dirname(@path)
     end
 
     def option(name)
-------------- next part --------------
HTML����������������������������...
Download 



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