class NumbersAndWords::Strategies::FiguresConverter::Decorators::PtBr::Integral

Public Instance Methods

run() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb, line 9
def run
  "#{super}#{integral_significance}"
end

Private Instance Methods

figures() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb, line 23
def figures
  @strategy.language.figures
end
integral_significance() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb, line 15
def integral_significance
  " #{@strategy.translations.integral quantity}" if @options[:remove_zero].nil?
end
quantity() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb, line 19
def quantity
  figures.reverse.join.to_i
end