lib/fathom.rb in fathom-0.1.0 vs lib/fathom.rb in fathom-0.2.0

- old
+ new

@@ -5,27 +5,13 @@ # Make decoupling easier with an informed LoadPath $:.unshift(File.dirname(__FILE__)) $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'fathom'))) require "gsl" -require 'ostruct' require 'options_hash' -# Fix a few bugs in OpenStruct -class OpenStruct - def table - @table - end - - def values - @table.values - end - - def keys - @table.keys - end -end +require 'ext/open_struct' module Fathom lib = File.expand_path(File.dirname(__FILE__)) $LOAD_PATH.unshift(lib) @@ -53,13 +39,22 @@ autoload :CSVImport, 'import/csv_import' autoload :RDFImport, 'import/rdf_import' autoload :SQLiteImport, 'import/sqlite_import' autoload :NodeUtilities, 'node_utilities' + + autoload :Simulation, 'simulation' + autoload :TickMethods, 'simulation/tick_methods' + autoload :TickSimulation, 'simulation/tick_simulation' + autoload :Agent, 'agent' + autoload :Properties, 'agent/properties' + autoload :AgentCluster, 'agent/agent_cluster' + def knowledge_base @knowledge_base ||= KnowledgeBase.new end + alias :kb :knowledge_base end # Temporary include Fathom def r \ No newline at end of file