class Outil::Workspace
Public Class Methods
asts()
click to toggle source
# File lib/outil/workspace.rb, line 18 def self.asts @asts ||= {} end
ocs()
click to toggle source
# File lib/outil/workspace.rb, line 5 def self.ocs @ocs ||= OCS::Config.new end
references()
click to toggle source
# File lib/outil/workspace.rb, line 14 def self.references @references ||= [] end
reset!()
click to toggle source
# File lib/outil/workspace.rb, line 9 def self.reset! @references = [] @asts = {} end
scan(path, lineno, name)
click to toggle source
# File lib/outil/workspace.rb, line 22 def self.scan path, lineno, name references << [path, lineno, name] asts[name] = OCS::ObjectParser.new(path, name).find end
sync()
click to toggle source
# File lib/outil/workspace.rb, line 27 def self.sync asts.each_pair do |name, tree| ocs.index.append name, tree end end