Skip to content

Commit

Permalink
Add 'Read-only' to engine.language docstring (re: #31)
Browse files Browse the repository at this point in the history
  • Loading branch information
drmfinlay committed Oct 12, 2018
1 parent 0fabd92 commit 904e25a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dragonfly/engines/base/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,14 @@ def speak(self, text):
""" Speak the given *text* using text-to-speech. """
raise NotImplementedError("Engine %s not implemented." % self)

@property
def language(self):
"""
Current user language of the SR engine. (Read-only)
:rtype: str
"""
return self._get_language()

def _get_language(self):
raise NotImplementedError("Engine %s not implemented." % self)
language = property(fget=lambda self: self._get_language(),
doc="Current user language of the SR engine.")

0 comments on commit 904e25a

Please sign in to comment.