Class: NumbersAndWords::Strategies::FiguresConverter::Options::En::Ordinal

Inherits:
Base::Ordinal
  • Object
show all
Defined in:
lib/numbers_and_words/strategies/figures_converter/options/en/ordinal.rb

Constant Summary collapse

ZERO_TYPE =
:zero
HUNDRED_TYPE =
:hundreds
MEGS_TYPE =
:megs

Instance Method Summary collapse

Instance Method Details

#result(type) ⇒ Object



13
14
15
16
# File 'lib/numbers_and_words/strategies/figures_converter/options/en/ordinal.rb', line 13

def result(type)
  @type = type
  MEGS_TYPE == type ? check_megs_numbers : check_simple_numbers
end