class PriorityQueue(T)
- PriorityQueue(T)
- Reference
- Object
Defined in:
priority_queue.crConstructors
Instance Method Summary
- 
        #dup
        
          Returns a shallow copy of this object. 
- #each(&)
- #empty?
- 
        #inspect
        
          Returns an unambiguous and information-rich string representation of this object, typically intended for developers. 
- #merge(other)
- #peek
- #pop
- #push(priority : Int32, item : T)
- #size
Constructor Detail
Instance Method Detail
        
        def dup
        #
      
      
        
              Description copied from class Reference
            
          
          Returns a shallow copy of this object.
This allocates a new object and copies the contents of
self into it.
        
        def inspect
        #
      
      
        
              Description copied from class Object
            
          
          Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO) which can be overridden for custom implementations.
Also see #to_s.