Class: DataStructures::PriorityQueue::ObjectWithPriority

Inherits:
Struct
  • Object
show all
Includes:
Comparable
Defined in:
lib/data_structures/priority_queue.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



32
33
34
# File 'lib/data_structures/priority_queue.rb', line 32

def <=> other
  priority <=> other.priority
end