Ruby lets you access instance variables only through getter and setter methods, but it will create them for you with minimal code, and it lets you invoke a setter as if it were an ordinary variable, much the way you can in Delphi. This makes it easy to add complex setter code later without having to change any client code.
| You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | |
| http://mindprod.com/jgloss/ruby.html | J:\mindprod\jgloss\ruby.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.191.102] | |
| Feedback | You are visitor number 4,334. | |