Topic: Another couple of Ruby basics questions...
Ok I have got to the end of my Ruby for Rails Book and there are a few things that I want to make sure I have right in my head before I tackle the Agile Web book, and that is the definitions of instace mthods, instance Variables and class methods.
1. Instance Methods only appear once per class and have a unique set of values?
2. Class Methods can be used anywhere within a class i.e. a class method could be referenced inside another method?
3. Instave variables are unique variables can can only be used by the class they are created in and start with an @ symbol?
Do I have these definitions right and ammendments or clarification would be appreciated. I have read the old pickaxe online docs and some google searches but it didnt really help me understand these terms any better
Last edited by Opel (2007-01-30 12:43:48)