Class: Avm::Projects::Stereotype::JobComparator

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/projects/stereotype/job_comparator.rb

Instance Method Summary collapse

Instance Method Details

#resultObject



11
12
13
14
15
16
# File 'lib/avm/projects/stereotype/job_comparator.rb', line 11

def result
  return -1 if run_before?(job1, job2)
  return 1 if run_before?(job2, job1)

  job1.object_id <=> job2.class.name
end