Added README and re-designed the API

This commit is contained in:
Virgil Dupras
2013-05-28 11:34:53 -04:00
parent 6ed5b4ce86
commit 5479aa59c6
3 changed files with 80 additions and 29 deletions

View File

@@ -227,7 +227,12 @@ def to_currency(n, currency='LTL', cents = True):
return u'%s%s %s, %s %s' % (minus_str, int2word(left), pluralize(left, cr1),
cents_str, pluralize(right, cr2))
to_card = n2w
class Num2Word_LT(object):
def to_cardinal(self, number):
return n2w(number)
def to_ordinal(self, number):
raise NotImplementedError()
if __name__ == '__main__':
import doctest