[MacRuby-devel] Bizarre behaviour with an instance variable
Henry Maddocks
henry.maddocks at gmail.com
Thu Jan 27 13:58:50 PST 2011
On 28/01/2011, at 2:46 AM, Eloy Durán wrote:
>
> In your example ‘theProjectRoot’ is not a parameter to the block, that's ‘f’. It could have been a local variable (or method) outside of the block, but that isn't so either, the one variable you defined that comes close is the instance variable named ‘@theProjectRoot’.
Or, to paraphrase, '@theProjectRoot' and 'theProjectRoot' are not the same variable. This trips me up quite often too :)
Henry
More information about the MacRuby-devel
mailing list