Class: TestMap::Filter
- Inherits:
-
Object
- Object
- TestMap::Filter
- Defined in:
- lib/test_map/filter.rb
Overview
Filter skips files that are not part of the project.
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#exclude_patterns ⇒ Object
10 |
# File 'lib/test_map/filter.rb', line 10 def exclude_patterns = @exclude_patterns ||= Config[:exclude_patterns] |
Class Method Details
.call(files) ⇒ Object
8 |
# File 'lib/test_map/filter.rb', line 8 def self.call(files) = new.call(files) |
Instance Method Details
#call(files) ⇒ Object
9 |
# File 'lib/test_map/filter.rb', line 9 def call(files) = files.reject { exclude? _1 } |
#exclude?(file) ⇒ Boolean
11 |
# File 'lib/test_map/filter.rb', line 11 def exclude?(file) = exclude_patterns.any? { file.match? _1 } |