RubyGems Navigation menu

human_numbers 0.1.0

human_numbers defines the method #to_english on the classes Float and Integer, as well as the method #to_french on the Integer class, for converting numbers to natural language strings. By default, a cardinal number will be returned (one, two, three), but supplying an :ordinal argument will cause it to return an ordinal (first, second, third). It works with numbers whose absolute value is less than 10^33. #to_french supports a second argument for specifying the gender of the word, which can be either :masculine or :feminine.

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 0.1.0 - September 02, 2016 (6KB)
  2. 0.0.4 - September 01, 2016 (5.5KB)
  3. 0.0.3 - September 01, 2016 (5.5KB)
  4. 0.0.2 - September 01, 2016 (5.5KB)
全てのバージョンを表示(全5件)

Development依存関係 (2):

minitest-reporters >= 1.1.11, ~> 1.1.11
simplecov ~> 0.12.0

所有者:

作者:

  • Kyle Brown

SHA 256チェックサム:

=

累計ダウンロード数 8,204

このバージョンのみ 2,713

このバージョンがリリースされたのは:

ライセンス:

MIT

必要なRubyのバージョン: >= 0

リンク: