Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Ruby
1.2K+ articles
Ruby-Methods
926+ articles
Ruby Collections
144+ articles
Ruby Enumerable-class
49 posts
Recent Articles
Ruby | Enumerable detect() function
Last Updated: 12 July 2025
The detect() of enumerable is an inbuilt method in Ruby returns the first element which satisfies the given condition in the block. If there is no block, then it returns t...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable cycle() function
Last Updated: 12 July 2025
The cycle() of enumerable is an inbuilt method in Ruby calls block for each element of enum repeatedly the given numbers times or forever if none or nil is given. If a neg...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable count() function
Last Updated: 12 July 2025
The count() of enumerable is an inbuilt method in Ruby returns the number of elements in the enumerable, or the number of elements that are equal to a given element, or th...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable flat_map function
Last Updated: 12 July 2025
The flat_map() of enumerable is an inbuilt method in Ruby returns a new array with the concatenated results of running block once for every element in enum. In case no blo...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable collect() function
Last Updated: 12 July 2025
The collect() of enumerable is an inbuilt method in Ruby returns a new array with the results of running block once for every element in enum. The object is repeated every...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable collect_concat() function
Last Updated: 12 July 2025
The collect_concat() of enumerable is an inbuilt method in Ruby returns a new array with the concatenated results of running block once for every element in enum. In case ...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable find() function
Last Updated: 12 July 2025
The find() of enumerable is an inbuilt method in Ruby returns the first element which satisfies the given condition in the block. If there is no block, then it returns the...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable each_cons() function
Last Updated: 12 July 2025
The each_cons() of enumerable is an inbuilt method in Ruby iterates for consecutive N elements starting from each element every time. If no block is given, it returns the ...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Enumerable-class
Ruby | Enumerable each_with_index() function
Last Updated: 12 July 2025
The each_with_index() of enumerable is an inbuilt method in Ruby hashes the items in the enumerable according to the given block. In case no block is given, then an enumer...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Enumerable-class
Ruby | Enumerable each_witth_object() function
Last Updated: 12 July 2025
The each_with_object() of enumerable is an inbuilt method in Ruby iterates for every object and returns the initial object. It returns the enumerator, if no block is given...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Enumerable-class
Ruby | Enumerable entries() function
Last Updated: 12 July 2025
The entries() of enumerable is an inbuilt method in Ruby returns the items in the enumerable. Syntax: enu.entriesParameters: The function does not takes any parameter. Ret...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Enumerable-class
Ruby | Enumerable find_all() function
Last Updated: 12 July 2025
The find_all() of enumerable is an inbuilt method in Ruby returns the items in the enumerable which satisfies the given condition in the block. It returns an enumerator if...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Enumerable-class
Ruby | Enumerable select() function
Last Updated: 12 July 2025
The select() of enumerable is an inbuilt method in Ruby returns the items in the enumerable which satisfies the given condition in the block. It returns an enumerator if n...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Enumerable-class
Ruby | Enumerable find_index() function
Last Updated: 12 July 2025
The find_index() of enumerable is an inbuilt method in Ruby returns the index of the item which returns true for the given condition in the block, or the index of the item...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Enumerable-class
Ruby | Enumerable first() function
Last Updated: 12 July 2025
The first() of enumerable is an inbuilt method in Ruby returns the first N elements or the first element of the enumerable. If there is no first element, it returns nil. I...
read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Enumerable-class
1
2
3
4