Class: Rake::Pipeline::SortedPipeline

Inherits:
Rake::Pipeline show all
Defined in:
lib/rake-pipeline/sorted_pipeline.rb

Constant Summary

Constants inherited from Rake::Pipeline

VERSION

Instance Attribute Summary collapse

Attributes inherited from Rake::Pipeline

#filters, #input_files, #inputs, #output_root, #project, #rake_tasks, #tmpdir

Instance Method Summary collapse

Methods inherited from Rake::Pipeline

#add_filters, #add_input, build, #build, #copy, #fingerprint, #initialize, #invoke, #last_manifest, #manifest, #rake_application, #rake_application=, #setup, #setup_filters

Constructor Details

This class inherits a constructor from Rake::Pipeline

Instance Attribute Details

#comparatorObject

Returns the value of attribute comparator


4
5
6
# File 'lib/rake-pipeline/sorted_pipeline.rb', line 4

def comparator
  @comparator
end

#pipelineObject

Returns the value of attribute pipeline


4
5
6
# File 'lib/rake-pipeline/sorted_pipeline.rb', line 4

def pipeline
  @pipeline
end

Instance Method Details

#finalizevoid

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.

This method returns an undefined value.

Override Rake::Pipeline#finalize to do nothing. We want to pass on our unmatched inputs to the next part of the pipeline.


15
16
# File 'lib/rake-pipeline/sorted_pipeline.rb', line 15

def finalize
end

#output_filesObject


6
7
8
# File 'lib/rake-pipeline/sorted_pipeline.rb', line 6

def output_files
  input_files.sort(&comparator)
end