Class: Geez

Inherits:
NumeralBase show all
Defined in:
lib/numerify/converters/geez.rb

Overview

A class to convert to Geez script.

Constant Summary collapse

NUMERALS =
{
  0 => "",
  1 => "",
  2 => "",
  3 => "",
  4 => "",
  5 => "",
  6 => "",
  7 => "",
  8 => "",
  9 => "",
  10 => "",
  20 => "",
  30 => "",
  40 => "",
  50 => "",
  60 => "",
  70 => "",
  80 => "",
  90 => ""
}.freeze

Instance Method Summary collapse

Instance Method Details

#convert(arabic_number_string) ⇒ Object



29
30
31
32
33
34
# File 'lib/numerify/converters/geez.rb', line 29

def convert(arabic_number_string)
  arabic_number_string = arabic_number_string.to_s.strip

  arabic_number_string = "0#{arabic_number_string}" if arabic_number_string.length.odd?
  add_delimiter group_by_two arabic_number_string
end