Avdi Grimm
2/5/2007 7:41:00 PM
On 2/5/07, bcparanj@gmail.com <bcparanj@gmail.com> wrote:
> I was reading the Programming Ruby book yesterday and the explanation
> for Ruby blocks sounded very similar to Template Method pattern that I
> used in other object-oriented languages.
>
> Is my understanding correct? TIA
Yes, that's one way of looking at it. Using blocks can be like
"filling in the blank" in a template method.
--
Avdi