Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
PS: that means this case is out of the scope of the kata, btw, if
obj
is the instance and not the class itself. But your code shouldn't raise in any case.all methods are assigned directly to the class, and not to instances, now. So your code shouldn't actually raise an error for this specific case, afaik.
That test checks whether object methods can access the implicitely passed variable (normally called
self
). Note this should work, whether the variable is calledself
or something else. Looking at your code, I think you are having trouble with that second part.As an example, this code should work: