VOOZH about

URL: https://www.geeksforgeeks.org/ruby/ruby-enumerable-entries-function/

⇱ Ruby | Enumerable entries() function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Ruby | Enumerable entries() function

Last Updated : 12 Jul, 2025
The entries() of enumerable is an inbuilt method in Ruby returns the items in the enumerable.
Syntax: enu.entries Parameters: The function does not takes any parameter. Return Value: It returns the items in the enum.
Example 1: Output:
[7, 9, 10]
Example 2: Output:
[7, 8, 9, 10, 11, 12, 13, 14]
Comment