Ruby Plus #79: Ruby Design Pattern Series - Iterator

Posted in Development on July 06, 2008


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.

Watch Video Watch Video on External Site

Tags: Ruby, Design Patterns, Ruby Plus, iterator, GoF