From: mathew
Date: 2005-09-11T15:26:31+09:00
Subject: Re: confused by nested functions
Navindra Umanee wrote:
> Why does the first one work but not the second one?
Ruby doesn't really have nested functions, and "def" is executable code
just like anything else. So a nested "def" doesn't define its function
until the function containing it is executed.
(Caught me out too.)
mathew
--
WE HAVE TACOS