Class: HeapInternal::Pair

Inherits:
Struct
  • Object
show all
Defined in:
lib/data_structures_rmolinari/heap_internal.rb

Instance Attribute Summary collapse

Instance Attribute Details

#itemObject

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



47
48
49
# File 'lib/data_structures_rmolinari/heap_internal.rb', line 47

def item
  @item
end

#priorityObject

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



47
48
49
# File 'lib/data_structures_rmolinari/heap_internal.rb', line 47

def priority
  @priority
end