Class: Khmer
- Inherits:
-
NumeralBase
- Object
- NumeralBase
- Khmer
- Includes:
- DecimalNumeral
- Defined in:
- lib/numerify/converters/khmer.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/khmer.rb', line 22 def convert(arabic_number_string) from_arabic(arabic_number_string, NUMERALS) end |