摘要: #代码来源:http://rubyer.me/blog/917顺便学习 Ruby的4种闭包:blocks, Procs, lambdas 和 Methods。 #firstclass Array def iterate! self.each_with_index do |n, i|... 阅读全文
posted @ 2012-02-23 01:25 喻头快跑 阅读(344) 评论(0) 推荐(0) 编辑