From: Kero Date: 2005-07-29T19:36:01+09:00 Subject: Re: [newbie] make local var visible >> I think you have 2 options here (maybe more, but these are the ones I >> can come up with as a newbie myself): four and counting... >> 1) pass foo as an argument. >> def mfoo(foo) ... end >> mfoo(foo) >> 2) make foo an instance-variable >> @foo = [..] >> def mfoo >> @foo.each... >> end > > or make it global (sigh): $foo or make a proc from the method +--- Kero ------------------------- kero@chello@nl ---+ | all the meaningless and empty words I spoke | | Promises -- The Cranberries | +--- M38c --- http://members.chello.nl/k.vangelder ---+