Class: CC::Analyzer::PathMinimizer
- Inherits:
-
Object
- Object
- CC::Analyzer::PathMinimizer
- Defined in:
- lib/cc/analyzer/path_minimizer.rb
Instance Method Summary collapse
-
#initialize(paths) ⇒ PathMinimizer
constructor
A new instance of PathMinimizer.
- #minimize ⇒ Object
Constructor Details
#initialize(paths) ⇒ PathMinimizer
Returns a new instance of PathMinimizer.
7 8 9 10 |
# File 'lib/cc/analyzer/path_minimizer.rb', line 7 def initialize(paths) @paths = paths @to_remove = [] end |
Instance Method Details
#minimize ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/cc/analyzer/path_minimizer.rb', line 12 def minimize if diff.empty? ["./"] else filtered_paths end end |