<filename>packages/journal/Device.py<gh_stars>0
# -*- coding: utf-8 -*-
#
# <NAME>
# orthologue
# (c) 1998-2018 all rights reserved
#


# packages
import pyre


# declaration
class Device(pyre.protocol, family="journal.devices"):
    """
    The protocol that devices must implement
    """


    # types
    from .Renderer import Renderer


    # public state
    renderer = Renderer()
    renderer.doc = "the formatting strategy"


    # my default implementation
    @classmethod
    def pyre_default(cls, **kwds):
        """
        The default {Device} implementation
        """
        # use {Console}
        from .Console import Console
        return Console


    # interface
    @pyre.provides
    def record(self, page, metadata):
        """
        Create a journal entry from the given information
        """


# end of file

<filename>packages/journal/Device.py<gh_stars>0
# -*- coding: utf-8 -*-
#
# <NAME>
# orthologue
# (c) 1998-2018 all rights reserved
#


# packages
import pyre


# declaration
class Device(pyre.protocol, family="journal.devices"):
    """
    The protocol that devices must implement
    """


    # types
    from .Renderer import Renderer


    # public state
    renderer = Renderer()
    renderer.doc = "the formatting strategy"


    # my default implementation
    @classmethod
    def pyre_default(cls, **kwds):
        """
        The default {Device} implementation
        """
        # use {Console}
        from .Console import Console
        return Console


    # interface
    @pyre.provides
    def record(self, page, metadata):
        """
        Create a journal entry from the given information
        """


# end of file

# -*- coding: utf-8 -*- # # <NAME> # orthologue # (c) 1998-2018 all rights reserved # # packages # declaration The protocol that devices must implement # types # public state # my default implementation The default {Device} implementation # use {Console} # interface Create a journal entry from the given information # end of file