Hi, this blog is no longer maintained, my new blog is here

Ruby On Rails and a Conning Israeli entrepreneur

Showing posts with label numbers. Show all posts
Showing posts with label numbers. Show all posts

num_to_english SVN

I am experiencing difficulties with my SVN repository, the plugin will be available on Sunday.

Number to english

num_to_english is my first plugin, i kinda thought it would become a nice addition to the Fixnum class in Ruby.

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

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"


get it from http://svn.creopolis.com/num_to_english/trunk


The Web Ask eizesus.com

Subscribe

    follow me on Twitter

    Twiters Around

    About Me

    My photo
    I am a web developer for more than 9 years, managed, cried, coded, designed and made money in this industry. now trying to do it again.

    Labels