class NumbersAndWords::Strategies::FiguresConverter::Decorators::EnGb::Fractional

Constants

SHIFT_ZERO_LENGTH

Public Instance Methods

run() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional.rb, line 11
def run
  fraction_to_digits
end

Private Instance Methods

fraction_to_digits() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional.rb, line 17
def fraction_to_digits
  full_fraction.to_a.to_words.join ' '
end
zero_length() click to toggle source
Calls superclass method
# File lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional.rb, line 21
def zero_length
  super - SHIFT_ZERO_LENGTH
end