Class: Mutant::Repository::SubjectFilter

Inherits:
Object
  • Object
show all
Includes:
Adamantium
Defined in:
lib/mutant/repository.rb

Overview

Subject filter based on repository diff

Instance Method Summary collapse

Instance Method Details

#call(subject) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Test if subject was touched in diff

Parameters:

Returns:

  • (Boolean)


17
18
19
# File 'lib/mutant/repository.rb', line 17

def call(subject)
  diff.touches?(subject.source_path, subject.source_lines)
end