[Groonga-commit] droonga/fluent-plugin-droonga at 707a218 [master] module -> class

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Sep 11 19:06:34 JST 2013


Kouhei Sutou	2013-09-11 19:06:34 +0900 (Wed, 11 Sep 2013)

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

  Message:
    module -> class
    
    If a method depends on some private methods, it should be classed with
    related methods instead of module functions. Because these methods are
    strongly related not just only categorized.

  Modified files:
    lib/groonga_command_converter.rb

  Modified: lib/groonga_command_converter.rb (+4 -2)
===================================================================
--- lib/groonga_command_converter.rb    2013-09-11 18:53:38 +0900 (69b0e67)
+++ lib/groonga_command_converter.rb    2013-09-11 19:06:34 +0900 (6ba091f)
@@ -18,10 +18,12 @@
 require "groonga/command"
 
 module Droonga
-  module GroongaCommandConverter
+  class GroongaCommandConverter
     STATUS_OK = 200.freeze
 
-    module_function
+    def initialize
+    end
+
     def parse(input, &block)
       command = Groonga::Command::Parser.parse(input)
       case command.name
-------------- next part --------------
HTML����������������������������...
Download 



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