Difference between revisions of "Category"
Jump to navigation
Jump to search
(No difference)
|
Revision as of 14:19, 30 August 2005
Categories let you extend the behaviour of a class without having to subclass it.
The obvious advantage is that all classes that inherit from the original class would automagically also inherit the additions of your category.
One disadvantage is that a category cannot add instance_variables.