[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):
1) pass foo as an argument.
  def mfoo(foo) ... end
  mfoo(foo)
2) make foo an instance-variable
  @foo = [..]
  def mfoo
     @foo.each...
  end

grtz,
wannes

or make it global (sigh): $foo

Simon

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 ---+