Eric Li

37%
Flag icon
To mix in Enumerable, you need only make sure that your internal iterator method is named each and that the individual elements that you are going to iterate over have a reasonable implementation of the <=> comparison operator. For
Design Patterns in Ruby (Addison-Wesley Professional Ruby Series)
Rate this book
Clear rating
Open Preview