Class: Priority

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Comparable
Defined in:
app/models/priority.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



7
8
9
10
11
12
13
# File 'app/models/priority.rb', line 7

def <=> (other)
  result = nil
  if (other.kind_of?(Priority))
    result = other.rank() <=> rank()
  end
  return result
end