Every repository with this icon (
Every repository with this icon (
tree 22610db97733fc545046e231ce8f5cbca97c59bb
parent 40abe509eb6be4d9a7ae90fed2e0656987212b88
| name | age | message | |
|---|---|---|---|
| |
History.txt | Thu Sep 04 08:07:37 -0700 2008 | |
| |
README.markdown | Tue Jan 20 01:44:58 -0800 2009 | |
| |
lib/ | Mon Mar 23 10:55:24 -0700 2009 | |
| |
spec/ | Mon Mar 23 10:55:24 -0700 2009 |
= verbal
http://trix.lighthouseapp.com/projects/14763-verbal
== DESCRIPTION:
Converts numbers to words (its text presentation) Currently supported languages are:
- English *
- Polish
- German (not fully implemented)
NOTE: It's American English numbering system http://www.mazes.com/AmericanNumberingSystem.html
h2. SYNOPSIS:
NUMBERS:
Verbal::Polish::Numbers.to_words(123_456_789) => "sto dwadzieścia trzy miliony czterysta pięćdziesiąt sześć tysiecy siedemset osiemdziesiąt dziewięć"
Verbal::English::Numbers.to_words(123_456_789) => "one hundred twenty-three million four hundred fifty-six thousand seven hundred and eighty-nine"
CURRENCIES:
Verbal::Polish::Currency.to_words(123_456_789_00, 'PLN') => "sto dwadzieścia trzy miliony czterysta pięćdziesiąt sześć tysiecy siedemset osiemdziesiąt dziewięć złotych zero groszy"
No Support for Verbal::English::Currency yet... Anybody?
h2. REQUIREMENTS:
h2. LICENSE:
(The MIT License)
Copyright (c) 2008 Tomasz Mazur
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.








