Module: ConsistentHashing
- Defined in:
- lib/consistent_hashing.rb,
lib/consistent_hashing/ring.rb,
lib/consistent_hashing/avl_tree.rb,
lib/consistent_hashing/virtual_point.rb
Overview
Main module
Defined Under Namespace
Classes: AVLTree, Ring, VirtualPoint
Constant Summary collapse
- LIBPATH =
::File.('..', __FILE__) + ::File::SEPARATOR
- PATH =
::File.dirname(LIBPATH) + ::File::SEPARATOR
- VERSION =
::File.read(PATH + 'version.txt').strip
Class Method Summary collapse
-
.load_lib ⇒ Object
Internal: loads all necessary lib files.
Class Method Details
.load_lib ⇒ Object
Internal: loads all necessary lib files
12 13 14 15 16 |
# File 'lib/consistent_hashing.rb', line 12 def self.load_lib require File.join(LIBPATH, 'consistent_hashing', 'virtual_point') require File.join(LIBPATH, 'consistent_hashing', 'ring') require File.join(LIBPATH, 'consistent_hashing', 'avl_tree') end |