Sha256: 3eb10e11d944d8d8e9a2df572f356e7f27d20476d26d63d2a70c36786bf97aa5

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

require "alephant/lookup/version"
require "alephant/lookup/lookup_helper"
require "alephant/lookup/lookup_table"

require 'alephant/logger'

module Alephant
  module Lookup
    include Logger
    @@lookup_tables = {}

    def self.create(table_name)
      @@lookup_tables[table_name] ||= LookupTable.new(table_name)
      LookupHelper.new(@@lookup_tables[table_name], Logger.get_logger)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alephant-lookup-0.4.0 lib/alephant/lookup.rb
alephant-lookup-0.3.0 lib/alephant/lookup.rb
alephant-lookup-0.2.0 lib/alephant/lookup.rb