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

#<=>(other) ⇒ Fixnum

implement Ruby protocol for sorting

Returns:

  • (Fixnum)


38
39
40
# File 'lib/rake-pipeline.rb', line 38

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