Output of an Array to sentence, the ruby way
@contacts.collect{|s| s.name}.to_sentence.concat(".")
--
Liu Lantao
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/ .
------
Mist, Rain, Sunshine.
@contacts.collect{|s| s.name}.to_sentence.concat(".")
0 条评论:
发表评论
订阅 博文评论 [Atom]
<< 主页