From: dblack@... Date: 2006-07-09T09:28:13+09:00 Subject: Re: accessors and anonymous classes Hi -- On Sun, 9 Jul 2006, Russell Fulton wrote: > @@hostService = Class.new( Section ) { > > attr_reader = :services, :converted, :actions, :patterns, > :realTime, > :periodic, :files > attr_writer = :converted Just looking at this quickly: you're assigning to local variables called attr_reader and attr_writer, when what you want to do is call the methods of those names: attr_reader :services, :converted, :actions, .... David -- "To fully realize the potential of Rails, it's crucial that you take the time to fully understand Ruby--and with "Ruby for Rails" David has provided just what you need to help you achieve that goal." -- DAVID HEINEMEIER HANSSON, in the foreword to RUBY FOR RAILS. Complete foreword & sample chapters at http://www.manning.com/black!