src.hamcrest.core.SelfDescribing   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %
Metric Value
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A describe_to() 0 10 1
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