[Groonga-commit] droonga/droonga.org at 832dcfd [gh-pages] Omit declarations in each sample

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Feb 28 15:21:42 JST 2014


YUKI Hiroshi	2014-02-28 15:21:42 +0900 (Fri, 28 Feb 2014)

  New Revision: 832dcfd10c9f3857b708cd96d347247bc7f49199
  https://github.com/droonga/droonga.org/commit/832dcfd10c9f3857b708cd96d347247bc7f49199

  Message:
    Omit declarations in each sample

  Modified files:
    reference/plugin/adapter/index.md

  Modified: reference/plugin/adapter/index.md (+0 -24)
===================================================================
--- reference/plugin/adapter/index.md    2014-02-28 15:05:27 +0900 (48be82b)
+++ reference/plugin/adapter/index.md    2014-02-28 15:21:42 +0900 (8012982)
@@ -107,9 +107,6 @@ To modify incoming messages, you have to override it by yours, like following:
 
 ~~~ruby
 module Droonga::Plugins::QueryFixer
-  extend Plugin
-  register("query-fixer")
-
   class Adapter < Droonga::Adapter
     def adapt_input(input_message)
       input_message.body["query"] = "fixed query"
@@ -128,9 +125,6 @@ To modify outgoing messages, you have to override it by yours, like following:
 
 ~~~ruby
 module Droonga::Plugins::ErrorConcealer
-  extend Plugin
-  register("error-concealer")
-
   class Adapter < Droonga::Adapter
     def adapt_output(output_message)
       output_message.status_code = Droonga::StatusCode::OK
@@ -149,9 +143,6 @@ You can override it by assigning a new string value, like:
 
 ~~~ruby
 module Droonga::Plugins::MySearch
-  extend Plugin
-  register("my-search")
-
   class Adapter < Droonga::Adapter
     input_message.pattern = ["type", :equal, "my-search"]
 
@@ -183,9 +174,6 @@ You can override it by assigning a new value, partially or fully. For example:
 
 ~~~ruby
 module Droonga::Plugins::MinimumLimit
-  extend Plugin
-  register("minimum-limit")
-
   class Adapter < Droonga::Adapter
     input_message.pattern = ["type", :equal, "search"]
 
@@ -207,9 +195,6 @@ Another case:
 
 ~~~ruby
 module Droonga::Plugins::MySearch
-  extend Plugin
-  register("my-search")
-
   class Adapter < Droonga::Adapter
     input_message.pattern = ["type", :equal, "my-search"]
 
@@ -248,9 +233,6 @@ You can override it by assigning a new status code. For example:
 
 ~~~ruby
 module Droonga::Plugins::ErrorConcealer
-  extend Plugin
-  register("error-concealer")
-
   class Adapter < Droonga::Adapter
     input_message.pattern = ["type", :equal, "search"]
 
@@ -275,9 +257,6 @@ You can override it by assigning new error information, partially or fully. For
 
 ~~~ruby
 module Droonga::Plugins::ErrorExporter
-  extend Plugin
-  register("error-exporter")
-
   class Adapter < Droonga::Adapter
     input_message.pattern = ["type", :equal, "search"]
 
@@ -307,9 +286,6 @@ You can override it by assigning a new value, partially or fully. For example:
 
 ~~~ruby
 module Droonga::Plugins::SponsoredSearch
-  extend Plugin
-  register("sponsored-search")
-
   class Adapter < Droonga::Adapter
     input_message.pattern = ["type", :equal, "search"]
 
-------------- next part --------------
HTML����������������������������...
Download 



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