From: Shannon Fang Date: 2002-12-01T23:23:29+09:00 Subject: Re: Cipher book for ruby Gavin, On Sun, 1 Dec 2002 22:30:26 +0900 "Gavin Sinclair" wrote: > > You won't program Ruby for long without using > > class Example > attr_reader :foo, bar > ... > end > > module Blah > ... > module_method :quux > end > > So symbols are just part of Ruby growing pains. I never had any problem with In deed, we follow nearly the same route, before I knew there's a class called symbol, there are no growing pains at all! I thought attr_reader is a special notation, I never realised that it is a method. and :name after attr_reader is just a special syntax, and :name is indeed same as name, but the ":" is required by the attr_reader notation. After I learned that attr_reader is a method, and :name is a symbol, and :name is not linked to name, my classical word collapsed, and I entered a new world of modern ruby... Just like transition to the world of Newton to Einstein... :) Shannon