class NumbersAndWords::Strategies::FiguresConverter::Base

Attributes

decorator[RW]
figures[RW]
language[RW]
options[RW]
translations[RW]

Public Class Methods

new(figures, options = {}) click to toggle source
# File lib/numbers_and_words/strategies/figures_converter.rb, line 13
def initialize(figures, options = {})
  @figures = figures.reverse

  @decorator = Decorators.factory(self, options)
  @options = Options::Proxy.new(self, options)
  @translations = Translations.factory
  @language = Languages.factory(self)
end

Public Instance Methods

run() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter.rb, line 22
def run
  around { language.words }
end

Private Instance Methods

around(&) click to toggle source
# File lib/numbers_and_words/strategies/figures_converter.rb, line 28
def around(&)
  decorator.run(&)
end