Sha256: 780965d5fda598ee807a4aa7c4e1b7a07bb0204eb81b0aa1ce307e05e8186ec2
Contents?: true
Size: 1020 Bytes
Versions: 6
Compression:
Stored size: 1020 Bytes
Contents
require File.expand_path("../../fathom", __FILE__) require 'rdf' require 'knowledge_base/search' module Fathom class KnowledgeBase # ===================== # = Module Extensions = # ===================== include Search # attr_reader :data_store def initialize(opts={}) # opts = OptionsHash.new(opts) # @data_store = OpenStruct.new end # def []=(key, value) # @data_store.table[key] = value # end # # def [](key) # @data_store.table[key] # end # # # This is temporary, but useful for now. After we have the persisted KnowledgeBase, # # we'll create explicit accessor methods or a find syntax. # def method_missing(sym, *args, &block) # if @data_store.table.keys.include?(sym) # @data_store.send(sym) # else # super # end # end end end if __FILE__ == $0 include Fathom # TODO: Is there anything you want to do to run this file on its own? # KnowledgeBase.new end
Version data entries
6 entries across 6 versions & 1 rubygems