Skip to content

Commit

Permalink
Document the Composer __init__ method.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblayman committed Sep 11, 2015
1 parent 8807fb8 commit bd4d2e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/composers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ constructs a ``Composer`` instance by invoking a no parameter constructor.
.. autoclass:: handroll.composers.Composer
:members:

.. automethod:: handroll.composers.Composer.__init__

A plugin should be added to the ``handroll.composers`` entry point group. For
example, the ``MarkdownComposer`` plugin included by default defines its entry
point in ``setup.py`` as:
Expand Down
2 changes: 1 addition & 1 deletion handroll/composers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Composer(object):
"""Interface for all composers"""

def __init__(self, config):
"""Each composer is given access to the configuration."""
"""Each composer is given the configuration when instantiated."""
self._config = config

def compose(self, catalog, source_file, out_dir):
Expand Down

0 comments on commit bd4d2e7

Please sign in to comment.