ExPropisju Build Status

Копипаст кода гема Ruby https://github.com/julik/ru_propisju на elixir. Выводит сумму прописью, рублей и гривен. Помогает в выборе правильного числительного.

Example

  iex(1)> ExPropisju.rublej(1234)
  "одна тысяча двести тридцать четыре рубля"
  iex(2)> ExPropisju.propisju_shtuk(212, 1, ["сволочь", "сволочи", "сволочей"])
  "двести двенадцать сволочей"
  iex(3)> ExPropisju.propisju_shtuk(100, 1, ["процент", "процентов", "процентов"])
  "сто процентов"

Installation

If available in Hex, the package can be installed by adding ex_propisju to your list of dependencies in mix.exs:

def deps do
  [{:ex_propisju, "~> 0.1.2"}]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_propisju.