Class: NumbersAndWords::Strategies::FiguresConverter::Options::Base::Ordinal

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

Direct Known Subclasses

PtBr::Ordinal

Instance Method Summary collapse

Constructor Details

#initialize(proxy, *_args) ⇒ Ordinal

Returns a new instance of Ordinal.


9
10
11
12
# File 'lib/numbers_and_words/strategies/figures_converter/options/base/ordinal.rb', line 9

def initialize(proxy, *_args)
  @strategy = proxy.strategy
  @options = proxy.options
end

Instance Method Details

#resultObject


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

def result
  return :ordinal if active?
end