Sha256: 64a197743773e39508a818b76654e20cacc4ec01478391fcab65470b110124c9

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

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

module Alephant
  module Lookup
    @@lookup_tables = {}

    def self.create(table_name, component_id)
      @@lookup_tables[table_name] ||= LookupTable.new(table_name)
      Lookup.new(@@lookup_tables[table_name], component_id)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alephant-lookup-0.0.3 lib/alephant/lookup.rb
alephant-lookup-0.0.2 lib/alephant/lookup.rb