Module: TurkishNumeric
- Defined in:
- lib/turkish_numeric.rb,
lib/turkish_numeric/tr_num.rb,
lib/turkish_numeric/version.rb,
lib/turkish_numeric/number_presenter.rb
Overview
Responsible for converting numerical values into Turkish texts, currency nototaion, or text representation of money.
Defined Under Namespace
Modules: NumberPresenter Classes: TrNum
Constant Summary collapse
- MAPPINGS =
[ %w[_ bir iki üç dört beş altı yedi sekiz dokuz].freeze, %w[_ on yirmi otuz kırk elli altmış yetmiş seksen doksan].freeze ].freeze
- SUBFIX =
%w[yüz bin milyon milyar trilyon katrilyon kentilyon sekstilyon septilyon oktilyon nonilyon desilyon undesilyon dodesilyon trodesilyon katordesilyon kendesilyon seksdesilyon septendesilyon oktodesilyon novemdesilyon vigintilyon].freeze
- VERSION =
'0.1.0'
Instance Method Summary collapse
-
#TrNum(num) ⇒ TurkishNumeric::TrNum
Helper to create TrNum objects quickly.
Instance Method Details
#TrNum(num) ⇒ TurkishNumeric::TrNum
Helper to create TrNum objects quickly
14 15 16 |
# File 'lib/turkish_numeric.rb', line 14 def TrNum(num) # rubocop:disable Naming/MethodName TrNum.new(num) end |