Class: MemDB::Index::PrefixTree::Bucket

Inherits:
Object
  • Object
show all
Includes:
Bucket
Defined in:
lib/mem_db/index/prefix_tree.rb

Instance Method Summary collapse

Methods included from Bucket

#accept_any, #bucket=

Constructor Details

#initialize(idx:, bucket: MemDB::Bucket) ⇒ Bucket

Returns a new instance of Bucket.



16
17
18
19
# File 'lib/mem_db/index/prefix_tree.rb', line 16

def initialize(idx:, bucket: MemDB::Bucket)
  @idx = idx
  @bucket = bucket
end

Instance Method Details

#newObject



21
22
23
# File 'lib/mem_db/index/prefix_tree.rb', line 21

def new
  MemDB::Index::PrefixTree.new(idx: @idx, bucket: @bucket)
end