From: Jay Levitt Date: 2005-07-26T15:05:59+09:00 Subject: Re: Trying to understand symbols In article , martindemello@yahoo.com says... > > So that would mean that Rails's use of symbols (e.g. attr_reader :foo) > > is just a convention, and Rails uses the symbol-name to go look up an > > Object with the same name, thus appearing to releate the Symbol to the > > Object? > > It's a common ruby convention, but yes, attr_reader etc. are just > methods that take Symbol arguments, and could have been written to take > String args instead. Thanks. I had always assumed that a symbol :foo was somehow a reference to the var/method/whatever called foo. -- Jay Levitt | Wellesley, MA | I feel calm. I feel ready. I can only Faster: jay at jay dot fm | conclude that's because I don't have a http://www.jay.fm | full grasp of the situation. - Mark Adler