8000 GitHub - startupdevhouse/polish_number: Translates numbers to Polish words
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

startupdevhouse/polish_number

 
 

Repository files navigation

Translates numbers to Polish words.

Installation

Add this line to your application's Gemfile:

gem 'polish_number'

Note: in the past known as polish-number (dash instead of an underscore) -- before version 1.0.0. Old repo: https://github.com/wpiekutowski/polish-number

And then execute:

$ bundle

Or install it yourself as:

$ gem install polish_number

Usage

require 'polish_number'

PolishNumber.in_words(1234) #=> tysiąc dwieście trzydzieści cztery
PolishNumber.in_words(34) #=> trzydzieści cztery złote
PolishNumber.in_words(12) #=> dwanaście złotych
PolishNumber.in_words('100.12') #=> sto złotych dwanaście groszy

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Analytics

About

Translates numbers to Polish words

Resources

License

MIT, GPL-2.0 licenses found

Licenses found

MIT
LICENSE.txt
GPL-2.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%
0