Class: MemDB::Index::Enum::Bucket

Inherits:
Object
  • Object
show all
Includes:
Bucket
Defined in:
lib/mem_db/index/enum.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/enum.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/enum.rb', line 21

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