Class: CC::Analyzer::IncludePathsBuilder
- Inherits:
-
Object
- Object
- CC::Analyzer::IncludePathsBuilder
- Defined in:
- lib/cc/analyzer/include_paths_builder.rb
Constant Summary collapse
- IGNORE_PATHS =
[".", "..", ".git"].freeze
Instance Attribute Summary collapse
-
#cc_include_paths ⇒ Object
readonly
Returns the value of attribute cc_include_paths.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(cc_exclude_paths, cc_include_paths = []) ⇒ IncludePathsBuilder
constructor
A new instance of IncludePathsBuilder.
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_paths ⇒ Object (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
#build ⇒ Object
17 18 19 |
# File 'lib/cc/analyzer/include_paths_builder.rb', line 17 def build PathMinimizer.new(paths_filter.paths).minimize.uniq end |