Class: Rake::FileTask

Inherits:
Object
  • Object
show all
Defined in:
lib/rake-pipeline.rb

Overview

Override Rake::FileTask to make it sortable

Direct Known Subclasses

Pipeline::DynamicFileTask

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Fixnum

implement Ruby protocol for sorting


46
47
48
# File 'lib/rake-pipeline.rb', line 46

def <=>(other)
  [name, prerequisites] <=> [other.name, other.prerequisites]
end