Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Collections
130+ articles
Ruby Queue-class
13 posts
Popular Articles
Recent Articles
Ruby | Queue size() function
Last Updated: 07 January 2020
The size() is an inbuilt function in Ruby returns the current size of the Queue or the number of objects present in it. Syntax: q_name.size
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue length() function
Last Updated: 07 January 2020
The length() is an inbuilt function in Ruby returns the current length of the Queue or the number of objects present in it. Syntax: q_name.
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue new() function
Last Updated: 07 January 2020
The new() is an inbuilt function in Ruby creates a new queue of the given name.Syntax: q_name = Queue.new()Parameters: The function does no
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Collections
130+ articles
Ruby | Queue shift() function
Last Updated: 07 January 2020
The shift() is an inbuilt function in Ruby returns the element in the front of the queue and removes it from the queue. Syntax: q_name.shif
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue enq() function
Last Updated: 07 January 2020
The enq() is an inbuilt function in Ruby inserts the element in the queue. Syntax: q_name.enq(element)Parameters: The function takes the el
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue pop() function
Last Updated: 07 January 2020
The pop() is an inbuilt function in Ruby returns the element in the front of the queue and removes it from the queue. Syntax: q_name.pop()P
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue deq() function
Last Updated: 07 January 2020
The deq() is an inbuilt function in Ruby returns the element in the front of the queue and removes it from the queue. Syntax: q_name.deq()P
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue closed? function
Last Updated: 07 January 2020
The closed? is an inbuilt function in Ruby checks if the queue is closed or not?. It returns a boolean value, which is true if the Queue is
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue empty? function
Last Updated: 07 January 2020
The empty? is an inbuilt function in Ruby checks if the queue is empty or not?. It returns a boolean value, which is true if the Queue is e
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue clear() function
Last Updated: 07 January 2020
The clear() is an inbuilt function in Ruby clears the queue and makes it size to be zero again. We can re-insert objects again to it. Synta
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue push() function
Last Updated: 04 December 2020
The push() is an inbuilt function in Ruby inserts the element in the queue.Syntax: q_name.push(element)Parameters: The function takes the el
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue close() function
Last Updated: 03 December 2020
The close() is an inbuilt function in Ruby closes the queue permanently and does not allow any more push or pop operations in it. A closed q
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
Ruby | Queue << function
Last Updated: 07 January 2020
The () is an inbuilt function in Ruby inserts the element in the queue. Syntax: q_name elementParameters: The function takes the element t
...read more
Ruby
Ruby Collections
Ruby Queue-class
1
1
1
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !