Class: CC::Analyzer::IncludePathsBuilder
- Inherits:
-
Object
- Object
- CC::Analyzer::IncludePathsBuilder
- Defined in:
- lib/cc/analyzer/include_paths_builder.rb
Defined Under Namespace
Classes: Directory
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(cc_exclude_paths) ⇒ IncludePathsBuilder
constructor
A new instance of IncludePathsBuilder.
Constructor Details
#initialize(cc_exclude_paths) ⇒ IncludePathsBuilder
Returns a new instance of IncludePathsBuilder.
12 13 14 |
# File 'lib/cc/analyzer/include_paths_builder.rb', line 12 def initialize(cc_exclude_paths) @cc_exclude_paths = cc_exclude_paths end |
Class Method Details
.relevant_entries(path) ⇒ Object
6 7 8 9 10 |
# File 'lib/cc/analyzer/include_paths_builder.rb', line 6 def self.relevant_entries(path) Dir.entries(path).reject do |e| %w(. .. .git).include?(e) end end |