class IncludeFileDependencyGraph
Returns a hash of individual file include links
Public Class Methods
new(project)
click to toggle source
# File lib/cpp_dependency_graph/include_file_dependency_graph.rb, line 9 def initialize(project) @project = project end
Public Instance Methods
all_cyclic_links()
click to toggle source
# File lib/cpp_dependency_graph/include_file_dependency_graph.rb, line 13 def all_cyclic_links # TODO: Implement end
links(file_name)
click to toggle source
# File lib/cpp_dependency_graph/include_file_dependency_graph.rb, line 17 def links(file_name) files = @project.source_files.select do |_, file| file.includes.include?(file_name) end files.map do |_, file| links = [Link.new(file.basename, file_name, false)] [file.basename, links] end.to_h end