Expose to to_currency.

This commit is contained in:
Mārtiņš Šulcs
2017-10-26 13:26:17 +03:00
parent 096cb45ad9
commit 7461ef6d78
4 changed files with 11 additions and 0 deletions

View File

@@ -279,6 +279,8 @@ class Num2Word_LV(object):
def to_ordinal(self, number):
raise NotImplementedError()
def to_currency(self, n, currency='EUR', cents=True, seperator=','):
return to_currency(n, currency, cents, seperator)
if __name__ == '__main__':
import doctest

View File

@@ -284,6 +284,9 @@ class Num2Word_PL(object):
def to_ordinal(self, number):
raise NotImplementedError()
def to_currency(self, n, currency='EUR', cents=True, seperator=','):
return to_currency(n, currency, cents, seperator)
if __name__ == '__main__':
import doctest

View File

@@ -306,6 +306,9 @@ class Num2Word_RU(object):
def to_ordinal(self, number):
raise NotImplementedError()
def to_currency(self, n, currency='EUR', cents=True, seperator=','):
return to_currency(n, currency, cents, seperator)
if __name__ == '__main__':
import doctest

View File

@@ -310,6 +310,9 @@ class Num2Word_UK(object):
def to_ordinal(self, number):
raise NotImplementedError()
def to_currency(self, n, currency='EUR', cents=True, seperator=','):
return to_currency(n, currency, cents, seperator)
if __name__ == '__main__':
import doctest