Public: returns a new ring object
11 12 13 14 15 16
# File 'lib/consistent_hashing/ring.rb', line 11 def initialize(nodes = [], replicas = 3) @replicas = replicas @ring = AVLTree.new nodes.each { |node| add(node) } end