lib/fathom.rb in fathom-0.3.4 vs lib/fathom.rb in fathom-0.3.6

- old
+ new

@@ -17,43 +17,10 @@ module Fathom lib = File.expand_path(File.dirname(__FILE__)) $LOAD_PATH.unshift(lib) - Fathom.autoload :Node, "node" - Fathom.autoload :BeliefNode, "node/belief_node" - Fathom.autoload :DataCollection, "node/data_collection" - Fathom.autoload :DataNode, "node/data_node" - Fathom.autoload :DiscreteNode, "node/discrete_node" - Fathom.autoload :MCNode, "node/mc_node" - Fathom.autoload :PlausibleRange, "node/plausible_range" - Fathom.autoload :Fact, "node/fact" - Fathom.autoload :Decision, "node/decision" - Fathom.autoload :CPMNode, 'node/cpm_node' - - Fathom.autoload :ValueDescription, "value_description" - Fathom.autoload :MonteCarloSet, "monte_carlo_set" - Fathom.autoload :KnowledgeBase, "knowledge_base" - - Fathom.autoload :Import, "import" - Fathom.autoload :ImportNode, "import/import_node" - Fathom.autoload :YAMLImport, 'import/yaml_import' - Fathom.autoload :CSVImport, 'import/csv_import' - - Fathom.autoload :Simulation, 'simulation' - Fathom.autoload :TickMethods, 'simulation/tick_methods' - Fathom.autoload :TickSimulation, 'simulation/tick_simulation' - - Fathom.autoload :Agent, 'agent' - Fathom.autoload :Properties, 'agent/properties' - Fathom.autoload :AgentCluster, 'agent/agent_cluster' - - Fathom.autoload :EnforcedName, 'node/node_extensions/enforced_name' - Fathom.autoload :NumericMethods, 'node/node_extensions/numeric_methods' - - - # Autoload classes and modules so that we only load as much of the library as we're using. # This allows us to have a fairly large library without taking up a lot of memory unless we need it. # autoload :Node, "node" # autoload :BeliefNode, "node/belief_node" # autoload :DataCollection, "node/data_collection" @@ -101,5 +68,36 @@ alias :kb :knowledge_base end # Temporary # include Fathom + +Fathom.autoload :Node, "node" +Fathom.autoload :BeliefNode, "node/belief_node" +Fathom.autoload :DataCollection, "node/data_collection" +Fathom.autoload :DataNode, "node/data_node" +Fathom.autoload :DiscreteNode, "node/discrete_node" +Fathom.autoload :MCNode, "node/mc_node" +Fathom.autoload :PlausibleRange, "node/plausible_range" +Fathom.autoload :Fact, "node/fact" +Fathom.autoload :Decision, "node/decision" +Fathom.autoload :CPMNode, 'node/cpm_node' + +Fathom.autoload :ValueDescription, "value_description" +Fathom.autoload :MonteCarloSet, "monte_carlo_set" +Fathom.autoload :KnowledgeBase, "knowledge_base" + +Fathom.autoload :Import, "import" +Fathom.autoload :ImportNode, "import/import_node" +Fathom.autoload :YAMLImport, 'import/yaml_import' +Fathom.autoload :CSVImport, 'import/csv_import' + +Fathom.autoload :Simulation, 'simulation' +Fathom.autoload :TickMethods, 'simulation/tick_methods' +Fathom.autoload :TickSimulation, 'simulation/tick_simulation' + +Fathom.autoload :Agent, 'agent' +Fathom.autoload :Properties, 'agent/properties' +Fathom.autoload :AgentCluster, 'agent/agent_cluster' + +Fathom.autoload :EnforcedName, 'node/node_extensions/enforced_name' +Fathom.autoload :NumericMethods, 'node/node_extensions/numeric_methods'