class NumbersAndWords::Translations::Nl
Public Instance Methods
hundreds(number, _options = {})
click to toggle source
Calls superclass method
NumbersAndWords::Translations::Families::Latin#hundreds
# File lib/numbers_and_words/translations/nl.rb, line 12 def hundreds(number, _options = {}) return t(:hundreds) if number == 1 super(number, separator: '') end
tens_with_ones(numbers, _options = {})
click to toggle source
# File lib/numbers_and_words/translations/nl.rb, line 8 def tens_with_ones(numbers, _options = {}) [ones(numbers[0]), tens(numbers[1])].join(union(numbers[0])) end
Private Instance Methods
union(units)
click to toggle source
# File lib/numbers_and_words/translations/nl.rb, line 20 def union(units) return t :union2or3 if [2, 3].include?(units) t :union end