Looking for ruby Answers? Try Ask4KnowledgeBase
Looking for ruby Keywords? Try Ask4Keywords

Ruby LanguageQueue


Syntax

  • q = Queue.new
  • q.push object
  • q << object # same as #push
  • q.pop #=> object