| Total Complexity | 1 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | __author__ = "Jon Reid" |
||
| 6 | class SelfDescribing(object): |
||
| 7 | """The ability of an object to describe itself.""" |
||
| 8 | |||
| 9 | def describe_to(self, description): |
||
| 10 | """Generates a description of the object. |
||
| 11 | |||
| 12 | The description may be part of a description of a larger object of |
||
| 13 | which this is just a component, so it should be worded appropriately. |
||
| 14 | |||
| 15 | :param description: The description to be built or appended to. |
||
| 16 | |||
| 17 | """ |
||
| 18 | raise NotImplementedError('describe_to') |
||
| 19 |