Class: Lao

Inherits:
NumeralBase show all
Includes:
DecimalNumeral
Defined in:
lib/numerify/converters/lao.rb

Overview

A class to convert to Thai numerals.

Constant Summary collapse

NUMERALS =
{
  0 => "໐",
  1 => "໑",
  2 => "໒",
  3 => "໓",
  4 => "໔",
  5 => "໕",
  6 => "໖",
  7 => "໗",
  8 => "໘",
  9 => "໙"
}.freeze

Instance Method Summary collapse

Instance Method Details

#convert(arabic_number_string) ⇒ Object



22
23
24
# File 'lib/numerify/converters/lao.rb', line 22

def convert(arabic_number_string)
  from_arabic(arabic_number_string, NUMERALS)
end