class NumbersAndWords::Translations::Nl
Public Instance Methods
Source
# File lib/numbers_and_words/translations/nl.rb, line 22 def hundreds(number, _options = {}) return t(:hundreds) if number == 1 super(number, separator: '') end
Calls superclass method
NumbersAndWords::Translations::Families::Latin#hundreds
Source
# File lib/numbers_and_words/translations/nl.rb, line 9 def ones(number, options = {}) # In fractional context, use "een" instead of "één" for number 1 if number == 1 && options[:fractional_numeral] t(:ones)[1] # "een" is at index 1 in the ones array else super end end
Calls superclass method
NumbersAndWords::Translations::Families::Latin#ones
Source
# File lib/numbers_and_words/translations/nl.rb, line 18 def tens_with_ones(numbers, options = {}) [ones(numbers[0], options), tens(numbers[1])].join(union(numbers[0])) end
Private Instance Methods
Source
# File lib/numbers_and_words/translations/nl.rb, line 30 def union(units) return t :union2or3 if [2, 3].include?(units) t :union end