Enumerable in Ruby
suggest changeVersions
Enumerable has been in Ruby for many versions. This note was tagged for Ruby 2.4.
Introduction
Enumerable is a mixin. Including it, and defining each, adds methods for traversing, sorting, and searching. Arrays, hashes, and Set include it. There is no HashMap class in Ruby; use Hash.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents