class Integer
def append_place(word, place, numbers)
-
(String)
- The word with the appropriate place value appended.
Parameters:
-
numbers
(Hash
) -- A hash containing number words. -
place
(Integer
) -- The place value (e.g., hundreds, thousands). -
word
(String
) -- The word representation of the number.
def append_place(word, place, numbers) places = numbers[:places] if place > 2 word + ' ' + places[place] else word end end