class Rsense::Server::Project
Attributes
dependencies[RW]
gem_path[RW]
graph[RW]
load_path[RW]
loaded[RW]
name[RW]
path[RW]
runtime[RW]
stubs[RW]
Public Class Methods
new(name, path)
click to toggle source
# File lib/rsense/server/project.rb, line 10 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
Public Instance Methods
loaded?(feature)
click to toggle source
# File lib/rsense/server/project.rb, line 26 def loaded?(feature) @loaded.include?(feature) end