Sha256: 7cbdb33a9cffa9d048f2ecbccadaeaf3923946ba44c44ce6729e2b78c345b56a
Contents?: true
Size: 748 Bytes
Versions: 8
Compression:
Stored size: 748 Bytes
Contents
module Rsense module Server class Project attr_accessor :name, :path, :graph, :runtime, :load_path, :gem_path, :loaded, :dependencies, :stubs def initialize(name, path) @name = name @path = path @graph = Rsense::Typing::Graph.new @runtime = @graph.getRuntime() @stubs = Dir.glob(Rsense::BUILTIN.join("**/*.rb")) @load_path = Rsense::Server::LoadPath.paths unless @path == "." @load_path << Pathname.new(@path) end @gem_path = Rsense::Server::GemPath.paths @loaded = [] @dependencies = Rsense::Server::LoadPath.dependencies(@path) end def loaded?(feature) @loaded.include?(feature) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems