Sha256: 707740e4d3bea5942666e4a43e7e178d7d2ed36cd2ca8fb2e561a5f0407c5a3b

Contents?: true

Size: 1.63 KB

Versions: 1

Compression:

Stored size: 1.63 KB

Contents

# ================
# = Dependencies =
# ================
Dir.glob("#{File.dirname(__FILE__)}/ext/*.rb").each { |file| require file}

require 'uuid'

module Fathom
  
  class Config
    attr_writer :storage
    def storage
      @storage ||= Hash
    end
  end
  
  # =================
  # = Configuration =
  # =================
  class << self
    # A reset-able configuration that provides access to other services (pod storage, say)
    def config
      @config ||= Config.new
    end
  
    # The reset on the configuration
    def reset_config!
      @config = Config.new
    end
  end
  
end

def path(path)
  File.expand_path("../fathom/#{path}", __FILE__)
end

# =============
# = Behaviors =
# =============
Fathom.autoload :AttributeSystem, path('behaviors/attribute_system')
Fathom.autoload :ContextBehavior, path('behaviors/context_behavior')
Fathom.autoload :Plugins, path('behaviors/plugins')

# ===============
# = Data Models =
# ===============
Fathom.autoload :AdjacencyMatrix, path('data/adjacency_matrix')
Fathom.autoload :Definition, path('data/definition')
Fathom.autoload :Edge, path('data/edge')
Fathom.autoload :Network, path('data/network')
Fathom.autoload :Outcome, path('data/outcome')
Fathom.autoload :Property, path('data/property')
Fathom.autoload :Variable, path('data/variable')

# ============
# = Contexts =
# ============
Fathom.autoload :NetworkPopulation, path('contexts/network_population')
Fathom.autoload :NetworkTraversal, path('contexts/network_traversal')

# =========
# = Roles =
# =========
Fathom.autoload :NetworkBuilder, path('roles/network_builder')
Fathom.autoload :GeneralGraphTools, path('roles/general_graph_tools')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fathom-0.5.0 lib/fathom.rb