[Groonga-commit] droonga/fluent-plugin-droonga at 3ee6189 [master] Rename format to format_attributes

Back to archive index

Yoji Shidara null+****@clear*****
Thu Jan 23 13:48:37 JST 2014


Yoji Shidara	2014-01-23 13:48:37 +0900 (Thu, 23 Jan 2014)

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

  Merged 1ab6677: Merge branch 'output-attributes'

  Message:
    Rename format to format_attributes

  Modified files:
    lib/droonga/searcher.rb

  Modified: lib/droonga/searcher.rb (+6 -3)
===================================================================
--- lib/droonga/searcher.rb    2014-01-23 13:46:45 +0900 (b150f19)
+++ lib/droonga/searcher.rb    2014-01-23 13:48:37 +0900 (46fedd7)
@@ -397,7 +397,7 @@ module Droonga
         {"name" => label, "type" => column.range.name, "vector" => vector}
       end
 
-      def format(attributes, table)
+      def format_attributes(attributes, table)
         attributes.collect do |attribute|
           format_attribute(attribute, table)
         end
@@ -418,7 +418,7 @@ module Droonga
         {"type" => column.range.name, "vector" => vector}
       end
 
-      def format(attributes, table)
+      def format_attributes(attributes, table)
         formatted_attributes = {}
         attributes.each do |attribute|
           formatted_attribute = format_attribute(attribute, table)
@@ -555,7 +555,10 @@ module Droonga
         else
           attributes_formatter = SimpleAttributesFormatter.new
         end
-        attributes_formatter.format(output_target_attributes, @result.records)
+        attributes_formatter.format_attributes(
+          output_target_attributes,
+          @result.records
+        )
       end
 
       def output_target_attributes
-------------- next part --------------
HTML����������������������������...
Descargar 



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