Ruby's magical Enumerable module
It’s time for another episode of Ruby Magic! In issue #13, we’ll look at one of Ruby’s most magical features, which provides most of the methods you’ll use when working with Ruby’s enumerable classes like Array, Hash and Range. We’ll learn about the Enumerable module and the Enumerator class, and we’ll make our own object enumerable by implementing #each from scratch. https://blog.appsignal.com/2018/05/29/ruby-magic-enumerable-and-enumerator.html
Post a comment