>>106
eval 使うのは怖くない?

class String
def replace(words); self.gsub(/#\{(\w+)\}/) { words[$1] }; end
end
words = { "month" => month, "day" => day, }
puts text = tmp.replace(words)