Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Ruby
1.2K+ articles
Ruby-Methods
926+ articles
Ruby Collections
144+ articles
Ruby Queue-class
13 posts
Recent Articles
Popular 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()Parameters: The function does...
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.length()Parameters: The functio...
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 not takes any parameter.Return Va...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Queue-class
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.shift()Parameters: The function doe...
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 element to be inserted into the q...
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()Parameters: The function does no...
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()Parameters: The function does no...
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 closed or it returns false. Sy...
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 empty or it returns false. Synta...
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. Syntax: q_name.clear()Parameters: Th...
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 element to be inserted into the ...
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 queue cannot be re-opened. Synta...
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 to be inserted into the queue. R...
read more
Ruby
Ruby Collections
Ruby Queue-class
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 !