符號 英文稱為Asterisk或Splat,中文尚未看到統一稱呼,一般是稱為乘號或星號。 ... def say(person, *words) words.each { |w| puts person + ": " + w } end ...
確定! 回上一頁