class Integer
def hundred_to_word(place = 0, numbers)
def hundred_to_word(place = 0, numbers) if zero? '' elsif self < 10 append_place(digit_to_word(numbers), place, numbers) elsif self < 20 append_place(teen_to_word(numbers), place, numbers) elsif self < 100 append_place(tens_place_to_word(numbers), place, numbers) else hundreds = self / 100 tens = self % 100 if tens.zero? append_place(hundreds.digit_to_word(numbers) + " #{numbers[:places][2]} and ", place, numbers) else append_place(hundreds.digit_to_word(numbers) + " #{numbers[:places][2]} and " + tens.tens_place_to_word(numbers), place, numbers) end end end