YUKI Hiroshi
null+****@clear*****
Wed Feb 19 18:18:26 JST 2014
YUKI Hiroshi 2014-02-19 18:18:26 +0900 (Wed, 19 Feb 2014) New Revision: d8b57739f7fd171ba68db003dc06c979805fd1f4 https://github.com/droonga/droonga.org/commit/d8b57739f7fd171ba68db003dc06c979805fd1f4 Message: Fix typo Modified files: reference/plugin/adapter/index.md Modified: reference/plugin/adapter/index.md (+4 -4) =================================================================== --- reference/plugin/adapter/index.md 2014-02-19 18:16:53 +0900 (06d416c) +++ reference/plugin/adapter/index.md 2014-02-19 18:18:26 +0900 (f71f082) @@ -158,14 +158,14 @@ module FooPlugin input_message.pattern = ["type", :equal, "my-search"] def adapt_input(input_message) - p input_message.type + p input_message.command # => "my-search" # This message will be handled by a plugin # for the custom "my-search" command. - input_message.type = "search" + input_message.command = "search" - p input_message.type + p input_message.command # => "search" # The messge type (command) is changed. # This message will be handled by the "search" plugin, @@ -215,7 +215,7 @@ module FooPlugin query_string = input_message["body"]["query"] # Construct internal search request for the "search" command. - input_message.type = "search" + input_message.command = "search" input_message.body = { "queries" => { "source" => "Store", -------------- next part -------------- HTML����������������������������...Download