# File lib/logging/repository.rb, line 191 def master_for( key ) return if @masters.empty? key = to_key(key) loop do break key if @masters.include? key break nil if :root == key if index = key.rindex(PATH_DELIMITER) key = key.slice(0, index) else key = :root end end end