From: James Edward Gray II Date: 2007-07-03T22:08:44+09:00 Subject: Re: LSRC Name Picker On Jul 3, 2007, at 8:00 AM, Ari Brown wrote: > > On Jul 3, 2007, at 8:55 AM, James Edward Gray II wrote: > >> >> It's Ruby's way of telling you that your code doesn't make sense. >> >> Basically, you are defining a block for an instance variable here, >> but only methods can take blocks in Ruby. I assume you meant to >> call some iterator and forgot to include the method name. > I was trying this: > @names = open('.names.txt', 'w+') > in initialize, and then write to that file later on. Is there a > better way to do this? This is fine and in that case you don't need the block at all. You can just write to the file with: @names.puts "�" James Edward Gray II