Class: CC::Analyzer::IncludePathsBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/cc/analyzer/include_paths_builder.rb

Constant Summary collapse

IGNORE_PATHS =
[".", "..", ".git"].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cc_exclude_paths, cc_include_paths = []) ⇒ IncludePathsBuilder

Returns a new instance of IncludePathsBuilder.



12
13
14
15
# File 'lib/cc/analyzer/include_paths_builder.rb', line 12

def initialize(cc_exclude_paths, cc_include_paths = [])
  @cc_exclude_paths = cc_exclude_paths
  @cc_include_paths = cc_include_paths
end

Instance Attribute Details

#cc_include_pathsObject (readonly)

Returns the value of attribute cc_include_paths.



10
11
12
# File 'lib/cc/analyzer/include_paths_builder.rb', line 10

def cc_include_paths
  @cc_include_paths
end

Instance Method Details

#buildObject



17
18
19
# File 'lib/cc/analyzer/include_paths_builder.rb', line 17

def build
  PathMinimizer.new(paths_filter.paths).minimize.uniq
end