Class: Mutant::Repository::SubjectFilter Private

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

Overview

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

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)


14
15
16
# File 'lib/mutant/repository.rb', line 14

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