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