Sha256: f14b34152e59a572eda431c2f314961de76df84ffd7eaf66036d1cd59077eb69
Contents?: true
Size: 917 Bytes
Versions: 8
Compression:
Stored size: 917 Bytes
Contents
require_relative "./command/graph" require_relative "./command/runtime_helper" require "rsense-core" 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 = Java::org.cx4a.rsense.typing::Graph.new @graph = Rsense::Server::Command::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