Quantcast
Viewing all articles
Browse latest Browse all 25

Episode 2 - class

Thanks. I am finding that I have to go back and review the episodes multiple times to get a better understanding of the concepts. Every time I do that, I take a few steps forward, but sometimes, it is going backwards as well.

I see that I have to start using the reference section of your book more often. The attr_accessor method is clearly documented as a private instance method there.

I use NetBeans for my Ruby and Ruby on Rails work and its debugger is very helpful in steppig through the program code. I add a “watch” on the “self” variable and it is fun to see it change as control moves from line to line.

One question I have is when would self become a module in these examples? I see it bounce between the Class names and Object (at the top level).


Viewing all articles
Browse latest Browse all 25

Trending Articles