Using @@var inside class definition
Victor Moroz
5 posts
|
Hello Dave, Thanks for the screencast, it is great. Maybe some day you can dig into using @@ variables, especially on class level. It is used in ActiveRecord and is a bit tricky
But this was the easy part. What I just barely understand
Guess it has something to do with ghost classes in the second case, so defining singleton within class def as self.method and as Class.method are quite different? |
Victor Moroz
5 posts
|
Same example with objects
So it looks like |
2 posts, 1 voice
