Class: Kannada

Inherits:
NumeralBase show all
Includes:
DecimalNumeral
Defined in:
lib/numerify/converters/kannada.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/kannada.rb', line 22

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