class Xezat::Debugger::Linguist
Public Class Methods
new(cygport)
click to toggle source
# File lib/xezat/debugger/linguist.rb, line 13 def initialize(cygport) @cygport = cygport end
Public Instance Methods
debug()
click to toggle source
# File lib/xezat/debugger/linguist.rb, line 17 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