Class: DataStructures101::ChainedHashTable
- Inherits:
-
Hash::BaseHashTable
- Object
- Hash::BaseHashTable
- DataStructures101::ChainedHashTable
- Defined in:
- lib/data_structures_101/chained_hash_table.rb
Instance Attribute Summary
Attributes inherited from Hash::BaseHashTable
#capacity, #hash_lambda, #size
Instance Method Summary collapse
-
#initialize(capacity = 31, prime = 109345121, hash_lambda = nil) ⇒ ChainedHashTable
constructor
A new instance of ChainedHashTable.
Methods inherited from Hash::BaseHashTable
#[], #[]=, #delete, #each, #insert
Constructor Details
#initialize(capacity = 31, prime = 109345121, hash_lambda = nil) ⇒ ChainedHashTable
Returns a new instance of ChainedHashTable.
5 6 7 |
# File 'lib/data_structures_101/chained_hash_table.rb', line 5 def initialize(capacity = 31, prime = 109345121, hash_lambda = nil) super end |