Class: Rake::FileTask

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

Overview

Override Rake::FileTask to make it sortable

Instance Method Summary (collapse)

Instance Method Details

- (Fixnum) <=>(other)

implement Ruby protocol for sorting

Returns:

  • (Fixnum)


31
32
33
# File 'lib/rake-pipeline.rb', line 31

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