From: "Brian Schröder" Date: 2005-07-30T19:59:21+09:00 Subject: Re: make local var visible On 30/07/05, Trans wrote: > Brian, > > Are you suggesting: > > class MFoo > attr_accessor :foo > def initialize( foo ) > @foo=foo > end > > def mfoo > foo.each do |f| > p f > end > end > > end > > # go-go-go! > mf = MFoo.new( ["a","b","c"] ) > mf.mfoo > > I agree. Yes, I think part of what botp was getting at is that in > converting something from perl --without making too much fuss about it, > he was suprised that it 1) wasn't completely straight foward, or 2) > still was, well, perlish. (i.e. @@) > > T. > > > -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/