Kouhei Sutou
null+****@clear*****
Tue Apr 8 17:51:38 JST 2014
Kouhei Sutou 2014-04-08 17:51:38 +0900 (Tue, 08 Apr 2014) New Revision: 2f3869acda1c5bb920d41cae3b4ed49d04fc6f77 https://github.com/droonga/fluent-plugin-droonga/commit/2f3869acda1c5bb920d41cae3b4ed49d04fc6f77 Message: Simplify "_attributes" in "AttributesFormatter#format_attributes" is verbosity. We can know "AttributesFormatter#format" formats attributes. Modified files: lib/droonga/searcher.rb Modified: lib/droonga/searcher.rb (+3 -3) =================================================================== --- lib/droonga/searcher.rb 2014-04-08 17:47:43 +0900 (e10e855) +++ lib/droonga/searcher.rb 2014-04-08 17:51:38 +0900 (cac2e0f) @@ -461,7 +461,7 @@ module Droonga {"name" => label} # TODO include detailed information of expression end - def format_attributes(attributes, table) + def format(attributes, table) attributes.collect do |attribute| format_attribute(attribute, table) end @@ -486,7 +486,7 @@ module Droonga {} # TODO include detailed information of expression end - def format_attributes(attributes, table) + def format(attributes, table) formatted_attributes = {} attributes.each do |attribute| formatted_attribute = format_attribute(attribute, table) @@ -627,7 +627,7 @@ module Droonga else formatter = SimpleAttributesFormatter.new end - formatter.format_attributes(output_target_attributes, @result.records) + formatter.format(output_target_attributes, @result.records) end def output_target_attributes -------------- next part -------------- HTML����������������������������...Download