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

Returns:

  • (Fixnum)


44
45
46
# File 'lib/rake-pipeline.rb', line 44

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