Number To English plugin

Plugin details

num_to_english hooks up to the Fixnum class and enables the use of the to_english method as follows

Websitehttp://pandejo.blogspot.com/2007/04/number-to-english.html Repositoryhttp://svn.creopolis.com/num_to_english/trunk Author Elad Meidar Tags translate, number LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://svn.creopolis.com/num_to_english/trunk
eizesus@eizesus-desktop:~/Projects/testing/trunk$ script/console
Loading development environment.
>> 3.to_english
=> "three"
>> 12.to_english
=> "twelve"
>> 34.to_english
=> "thirty-four"
>> 100.to_english
=> "one hundred"
>> (100 + 321).to_english
=> "four hundred twenty-one"
>> 12312311.to_english
=> "twelve million, three hundred twelve thousand, three hundred eleven"

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago