class NumbersAndWords::Strategies::FiguresConverter::Languages::Base
Attributes
Public Class Methods
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/base.rb, line 12 def initialize(strategy) @strategy = strategy @figures = strategy.figures @translations = strategy.translations @options = strategy.options end
Public Instance Methods
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/base.rb, line 24 def print_words @strings.reverse.join(' ') end
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/base.rb, line 19 def words @strings = strings_logic (@strings.empty? && zero) || print_words end