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 SizedQueue-class
14 posts
Recent Articles
Popular Articles
Ruby | SizedQueue << function
Last Updated: 09 January 2020
The () is an inbuilt function in Ruby inserts the element in the SizedQueue. The SizedQueue have a particular capacity and cannot accept elements once it is full. Syntax:...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue clear() function
Last Updated: 09 January 2020
The clear() is an inbuilt function in Ruby clears the SizedQueue. We can re-insert objects again to it till the declared size of the SizedQueue. Syntax: q_name.clear()Par...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue close() function
Last Updated: 03 December 2020
The close() is an inbuilt function in Ruby closes the SizedQueue permanently, and does not allows any more push or pop operations in it. A closed SizedQueue cannot be re-o...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue deq() function
Last Updated: 09 January 2020
The deq() is an inbuilt function in Ruby returns the element in the front of the SizedQueue and removes it from the SizedQueue. Syntax: sq_name.deq()Parameters: The funct...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue empty? function
Last Updated: 09 January 2020
The empty? is an inbuilt function in Ruby checks if the SizedQueue is empty or not?. It returns a boolean value, which is true if the SizedQueue is empty or it returns fa...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue enq() function
Last Updated: 09 January 2020
The enq() is an inbuilt function in Ruby inserts the element in the SizedQueue till it does not reaches its maximum capacity. Syntax: sq_name.enq(element)Parameters: The ...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue length() function
Last Updated: 09 January 2020
The length() is an inbuilt function in Ruby returns the current length of the SizedQueue or the number of objects present in it. It does not returns the pre-defined size ...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue max() function
Last Updated: 09 January 2020
The max() is an inbuilt function in Ruby returns the maximum size of the SizedQueue. It returns the size using which the Queue was initialised. Syntax: sq_name.max()Param...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue max= function
Last Updated: 09 January 2020
The max=() is an inbuilt function in Ruby changes the current capacity of the SizedQueue and sets it into X, where X is given by the user. Syntax: sq_name.max=X()Paramete...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue pop() function
Last Updated: 09 January 2020
The pop() is an inbuilt function in Ruby returns the element in the front of the SizedQueue and removes it from the SizedQueue. Syntax: sq_name.pop()Parameters: The funct...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue shift() function
Last Updated: 09 January 2020
The shift() is an inbuilt function in Ruby returns the element in the front of the SizedQueue and removes it from the SizedQueue. Syntax: sq_name.shift()Parameters: The f...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue push() function
Last Updated: 09 January 2020
The push() is an inbuilt function in Ruby inserts the element in the SizedQueue. Syntax: sq_name.push(element)Parameters: The function takes the element to be inserted in...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue size() function
Last Updated: 09 January 2020
The size() is an inbuilt function in Ruby returns the current size of the SizedQueue or the number of objects present in it. Syntax: sq_name.size()Parameters: The functio...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-class
Ruby | SizedQueue new() function
Last Updated: 09 January 2020
The new() is an inbuilt function in Ruby creates a new SizedQueue of the given name.Syntax: q_name = SizedQueue.new()Parameters: The function does not takes any parameter...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby SizedQueue-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 !