Ruby Plus #79: Ruby Design Pattern Series - Iterator
In this episode you will learn how easy and elegant it is to implement the Iterator GOF design pattern in Ruby.There are two types of Iterators:
- External Iterator
- Internal Iterator
In External Iterators a distinct controller controls the iteration whereas in Internal Iterator the iterator controls itself.