Method: IdStore#initialize

Defined in:
lib/ea_support/id_store.rb

#initialize(fileName = nil) ⇒ IdStore

Returns a new instance of IdStore.



4
5
6
7
8
9
10
11
# File 'lib/ea_support/id_store.rb', line 4

def initialize(fileName=nil)
  if fileName
    raise "Base directory does not exist: #{File.dirname(fileName)}" \
      unless File.exist?(File.dirname(fileName))
    @idsFileName = fileName
  end
  @idHash = nil
end