Sha256: 43068c641de5aa6275377b97bf9253e1211b1fbcbc376882c0450a9cde335aca

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

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

module Alephant
  module Lookup
    @@lookup_tables = {}

    def self.create(table_name, component_id = nil)
      @@lookup_tables[table_name] ||= LookupTable.new(table_name)
      LookupHelper.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.1.2 lib/alephant/lookup.rb
alephant-lookup-0.1.1 lib/alephant/lookup.rb