YUKI Hiroshi
null+****@clear*****
Tue Jan 6 19:56:08 JST 2015
YUKI Hiroshi 2015-01-06 19:56:08 +0900 (Tue, 06 Jan 2015) New Revision: 9c1dffd3a3ab01924cdb9ca682bf207429353c1d https://github.com/droonga/droonga-engine/commit/9c1dffd3a3ab01924cdb9ca682bf207429353c1d Message: Make method not called from outside private Modified files: lib/droonga/engine_node.rb Modified: lib/droonga/engine_node.rb (+12 -12) =================================================================== --- lib/droonga/engine_node.rb 2015-01-06 19:54:01 +0900 (1103fe4) +++ lib/droonga/engine_node.rb 2015-01-06 19:56:08 +0900 (060a124) @@ -87,18 +87,6 @@ module Droonga end end - def really_writable? - return false unless writable? - case @sender_role - when NodeMetadata::Role::SERVICE_PROVIDER - service_provider? - when NodeMetadata::Role::ABSORB_SOURCE - not absorb_destination? - else - true - end - end - def status if forwardable? "active" @@ -142,6 +130,18 @@ module Droonga role == NodeMetadata::Role::ABSORB_DESTINATION end + def really_writable? + return false unless writable? + case @sender_role + when NodeMetadata::Role::SERVICE_PROVIDER + service_provider? + when NodeMetadata::Role::ABSORB_SOURCE + not absorb_destination? + else + true + end + end + def output(message, destination) command = destination["type"] receiver = destination["to"] -------------- next part -------------- HTML����������������������������...Download