Class: Evilution::Runner::SubjectPipeline Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/runner/subject_pipeline.rb

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.

Instance Method Summary collapse

Constructor Details

#initialize(config, parser:) ⇒ SubjectPipeline

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.

Returns a new instance of SubjectPipeline.



8
9
10
11
# File 'lib/evilution/runner/subject_pipeline.rb', line 8

def initialize(config, parser:)
  @config = config
  @parser = parser
end

Instance Method Details

#callObject

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.



13
14
15
16
17
18
19
# File 'lib/evilution/runner/subject_pipeline.rb', line 13

def call
  subjects = parse_subjects
  subjects = filter_by_descendants(subjects) if descendants_target?
  subjects = filter_by_target(subjects) if method_target?
  subjects = (subjects) if config.line_ranges?
  subjects
end

#target_filesObject

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.



21
22
23
# File 'lib/evilution/runner/subject_pipeline.rb', line 21

def target_files
  @target_files ||= resolve_target_files
end