class NumbersAndWords::Strategies::FiguresConverter::Languages::Base
Attributes
figures[RW]
options[RW]
strategy[RW]
strings[RW]
translations[RW]
Public Class Methods
new(strategy)
click to toggle 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
print_words()
click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/languages/base.rb, line 24 def print_words @strings.reverse.join(' ') end
words()
click to toggle 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