[Groonga-commit] droonga/fluent-plugin-droonga at fdf3b27 [master] Reveive options as the argument of "new" method

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 12 11:41:59 JST 2013


YUKI Hiroshi	2013-09-12 11:41:59 +0900 (Thu, 12 Sep 2013)

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

  Message:
    Reveive options as the argument of "new" method

  Modified files:
    lib/groonga_command_converter.rb

  Modified: lib/groonga_command_converter.rb (+3 -4)
===================================================================
--- lib/groonga_command_converter.rb    2013-09-12 11:37:18 +0900 (e0d9a4f)
+++ lib/groonga_command_converter.rb    2013-09-12 11:41:59 +0900 (c169206)
@@ -23,13 +23,12 @@ module Droonga
   class GroongaCommandConverter
     STATUS_OK = 200.freeze
 
-    def initialize
+    def initialize(options={})
+      @options = options
     end
 
-    def convert(input, options={}, &block)
+    def convert(input, &block)
       @command = Groonga::Command::Parser.parse(input)
-      @options = options
-
       case****@comma*****
       when "table_create"
         yield create_table_create_command
-------------- next part --------------
HTML����������������������������...
下载 



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