From: "Shot (Piotr Szotkowski)" Date: 2008-10-22T03:22:10+09:00 Subject: Re: what's different between self.method and class << self? --qcHopEYAB45HaUaB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Shot (Piotr Szotkowski): > (With the first approach you=E2=80=99d have to define self.prop and > self.prop=3D to be able to write code like Example.prop =3D 'value'.) =E2=80=A6or use something like Rails=E2=80=99 cattr_* accessors =E2=80=93 b= ut they work on class variables (as opposed to instance variables of the singleton.) -- Shot --=20 Life being what it is, one dreams of revenge. -- Paul Gauguin --qcHopEYAB45HaUaB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFI/h+ji/mCfdEo8UoRAnjfAKCm0QDi/5ZZGIvnsQcm9bLrnhNhowCgqSgp PSdtMS05Jifvs4qnMNNd9yg= =ehCc -----END PGP SIGNATURE----- --qcHopEYAB45HaUaB--