Navigation Menu

Skip to content

Commit

Permalink
Make method not called from outside private
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 6, 2015
1 parent 3243ae2 commit 9c1dffd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/droonga/engine_node.rb
Expand Up @@ -87,18 +87,6 @@ def writable?
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"
Expand Down Expand Up @@ -142,6 +130,18 @@ def absorb_destination?
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"]
Expand Down

0 comments on commit 9c1dffd

Please sign in to comment.