Class: Devanagari

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

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