-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tenxian wrote:
| I even don't know what attr_accessor is.

There is this wonderful thing called 'search engine', which helps in
answering questions:

http://www.google.com/search?client=safari&rls=en&q=ruby%20attr_accessor&ie=UTF-8&oe=UTF-8

In short: attr_accessor is shorthand to define getters and setters.

For example:

attr_accessor :my_variable creates the methods to assign and to read the
instance variable '@my_variable'. Which saves you from defining these
methods yourself.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

~   Well, it just seemed wrong to cheat on an ethics test.  -- Calvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgYBroACgkQbtAgaoJTgL95FgCgjSEHqzPTfgNJybsKzqNMnp51
9tgAnjPFMLHhpXHOAe5hQDJsx8VTbxU3
=kdo5
-----END PGP SIGNATURE-----