M
Michael P. Soulier
--PNftq4k6NuHCGvy8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
I've seen a lot of examples in Rails code where they're accessing what appe=
ar
to be instance variables from self. Something like
self.foo =3D true
Now, I'm assuming that you can only access methods this way, so this is
actually a method call of
self.foo=3D(true)
Is that right? I'm not always clear on it.
Thanks,
Mike
--=20
Michael P. Soulier <[email protected]>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein
--PNftq4k6NuHCGvy8
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFFSAQhKGqCc1vIvggRAoCLAKCZyNOv2K6Y68z/5LQnp7iDNNOK6QCdHVbW
Onfvzw1rNJqWOh5T74eeyVg=
=Y3+k
-----END PGP SIGNATURE-----
--PNftq4k6NuHCGvy8--
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
I've seen a lot of examples in Rails code where they're accessing what appe=
ar
to be instance variables from self. Something like
self.foo =3D true
Now, I'm assuming that you can only access methods this way, so this is
actually a method call of
self.foo=3D(true)
Is that right? I'm not always clear on it.
Thanks,
Mike
--=20
Michael P. Soulier <[email protected]>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein
--PNftq4k6NuHCGvy8
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFFSAQhKGqCc1vIvggRAoCLAKCZyNOv2K6Y68z/5LQnp7iDNNOK6QCdHVbW
Onfvzw1rNJqWOh5T74eeyVg=
=Y3+k
-----END PGP SIGNATURE-----
--PNftq4k6NuHCGvy8--