#!/usr/bin/env ruby # coding: utf-8 x=[] kudamono<<("りんご") kudamono<<("みかん") kudamono.push("バナナ") for i in kudamono printf("%sを食べました。\n",i,sort!) end