Class: Xezat::Debugger::Linguist
- Inherits:
-
Object
- Object
- Xezat::Debugger::Linguist
- Includes:
- Xezat
- Defined in:
- lib/xezat/debugger/linguist.rb
Constant Summary
Constants included from Xezat
Xezat::DATA_DIR, INI_FILE, LOG, REPOSITORY_DIR, ROOT_DIR, TEMPLATE_DIR, VERSION
Instance Method Summary collapse
- #debug ⇒ Object
-
#initialize(cygport) ⇒ Linguist
constructor
A new instance of Linguist.
Methods included from Xezat
#config, #packages, #variables
Constructor Details
#initialize(cygport) ⇒ Linguist
11 12 13 |
# File 'lib/xezat/debugger/linguist.rb', line 11 def initialize(cygport) @cygport = cygport end |
Instance Method Details
#debug ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/xezat/debugger/linguist.rb', line 15 def debug vars = variables(@cygport) lang2files = {} top_src_dir = vars[:S] Find.find(top_src_dir) do |path| next if FileTest.directory?(path) language = Xezat::Linguist::FileBlob.new(path).language next if language.nil? name = language.name lang2files[name] = [] unless lang2files.key?(name) lang2files[name] << path.gsub("#{top_src_dir}/", '') end pp lang2files end |