YUKI Hiroshi
null+****@clear*****
Tue Apr 21 13:32:59 JST 2015
YUKI Hiroshi 2015-04-21 13:32:59 +0900 (Tue, 21 Apr 2015) New Revision: 648939c60fcaa4ff052d76be9550ce405c3319e6 https://github.com/droonga/droonga-engine/commit/648939c60fcaa4ff052d76be9550ce405c3319e6 Message: Make private method truly private Modified files: lib/droonga/node_role.rb Modified: lib/droonga/node_role.rb (+5 -5) =================================================================== --- lib/droonga/node_role.rb 2015-04-21 13:27:34 +0900 (29c4a3e) +++ lib/droonga/node_role.rb 2015-04-21 13:32:59 +0900 (2c31baa) @@ -26,10 +26,6 @@ module Droonga ] class << self - def valid?(role) - ROLES.include?(role) - end - def mine if @mine @mine.to_s @@ -53,8 +49,12 @@ module Droonga 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 -------------- next part -------------- HTML����������������������������... Download