class TestChanges::IgnoreExcludedFilesService
Attributes
exclusion_patterns[R]
Public Class Methods
new(exclusion_patterns)
click to toggle source
# File lib/test_changes/ignore_excluded_files_service.rb, line 5 def initialize(exclusion_patterns) @exclusion_patterns = exclusion_patterns || [] end
Public Instance Methods
call(paths)
click to toggle source
# File lib/test_changes/ignore_excluded_files_service.rb, line 9 def call(paths) matching_paths = exclusion_patterns.flat_map do |pattern| Pathname.glob(pattern) end paths - matching_paths.map(&:to_s) end