Method: Hold::InMemory::IdentitySetRepository#initialize

Defined in:
lib/hold/in_memory/identity_set_repository.rb

#initialize(allocates_ids = false) ⇒ IdentitySetRepository

Returns a new instance of IdentitySetRepository.



6
7
8
9
# File 'lib/hold/in_memory/identity_set_repository.rb', line 6

def initialize(allocates_ids=false)
  @by_id = {}
  @id_seq = 0 if allocates_ids
end