Navigation Menu

Skip to content

Commit

Permalink
Make private method truly private
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 21, 2015
1 parent b390114 commit 648939c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/droonga/node_role.rb
Expand Up @@ -26,10 +26,6 @@ class NodeRole
]

class << self
def valid?(role)
ROLES.include?(role)
end

def mine
if @mine
@mine.to_s
Expand All @@ -53,8 +49,12 @@ def to_s
end

private
def valid?(role)
ROLES.include?(role)
end

def normalize(role)
role = SERVICE_PROVIDER unless self.class.valid?(role)
role = SERVICE_PROVIDER unless valid?(role)
role
end
end
Expand Down

0 comments on commit 648939c

Please sign in to comment.