Sha256: 7ae79ba4d3622e085cb6d58926726fe9361df50c616d02edceac1e6b25af3430
Contents?: true
Size: 801 Bytes
Versions: 84
Compression:
Stored size: 801 Bytes
Contents
require 'rbbt/association' require 'rbbt/association/item' require 'rbbt/knowledge_base/entity' require 'rbbt/knowledge_base/query' require 'rbbt/knowledge_base/syndicate' class KnowledgeBase attr_accessor :namespace, :dir, :databases, :indices, :registry, :format, :entity_options def initialize(dir, namespace = nil) @dir = Path.setup(dir.dup) @namespace = namespace @format = IndiferentHash.setup({}) @registry ||= IndiferentHash.setup({}) @entity_options = IndiferentHash.setup({}) @indices = IndiferentHash.setup({}) @databases = IndiferentHash.setup({}) @identifiers = IndiferentHash.setup({}) @descriptions = {} @databases = {} end def setup(name, matches, reverse = false) AssociationItem.setup matches, self, name, reverse end end
Version data entries
84 entries across 84 versions & 1 rubygems