From: darren kirby Date: 2006-06-07T06:14:24+09:00 Subject: Re: Attributes not populated until called? --nextPart1479010.5RXMam4xCg Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline quoth the Robert Dober: > On 6/6/06, Robert Dober wrote: > > > > No the programmatic behavior is clear, I fail to see the reason though, > > but there might be one. > > As a matter of fact there is a good reason to cache the value of the > > attribute in the reader but that would be done like this > > Sorry slipped from a key, continuing... > > @year ||=3D @tags.tag['date'] > > > which will access the hash only once. I tried this and it is giving me the default tags (from the super class)=20 rather than using 'ogginfo'?! So is putting them in initialize() (see my=20 response to James Britt... > Hope that helped > Robert > > -d > > > > -- > > > darren kirby :: Part of the problem since 1976 :: > > > http://badcomputer.org "...the number of UNIX installations has grown > > > to 10, with more expected..." > > > - Dennis Ritchie and Ken Thompson, June 1972 > > > > -- > > Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui > > concerne l'univers, je n'en ai pas acquis la certitude absolue. > > > > - Albert Einstein =2Dd =2D-=20 darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." =2D Dennis Ritchie and Ken Thompson, June 1972 --nextPart1479010.5RXMam4xCg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEhfAtwPD5Cr/3CJgRAp4OAKCuC6ZI4T2/Wj8doLkSacvLhPu5OQCfSZEN YJyffyShzuVp4lsywZqSn/4= =dLnX -----END PGP SIGNATURE----- --nextPart1479010.5RXMam4xCg--