Class: Rake::Pipeline::SortedPipeline
- Inherits:
-
Rake::Pipeline
- Object
- Rake::Pipeline
- Rake::Pipeline::SortedPipeline
- Defined in:
- lib/rake-pipeline/sorted_pipeline.rb
Constant Summary
Constants inherited from Rake::Pipeline
Instance Attribute Summary collapse
-
#comparator ⇒ Object
Returns the value of attribute comparator.
-
#pipeline ⇒ Object
Returns the value of attribute pipeline.
Attributes inherited from Rake::Pipeline
#filters, #input_files, #inputs, #output_root, #project, #rake_tasks, #tmpdir
Instance Method Summary collapse
-
#finalize ⇒ void
private
Override #finalize to do nothing.
- #output_files ⇒ Object
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
#comparator ⇒ Object
Returns the value of attribute comparator.
4 5 6 |
# File 'lib/rake-pipeline/sorted_pipeline.rb', line 4 def comparator @comparator end |
#pipeline ⇒ Object
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
#finalize ⇒ void
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_files ⇒ Object
6 7 8 |
# File 'lib/rake-pipeline/sorted_pipeline.rb', line 6 def output_files input_files.sort(&comparator) end |