Completed
Pull Request — master (#75)
by Cézar
01:32
created

SelfDescribing.describe_to()   A

Complexity

Conditions 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
1
__author__ = "Jon Reid"
2
__copyright__ = "Copyright 2011 hamcrest.org"
3
__license__ = "BSD, see License.txt"
4
5
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