programming ruby - 2
1, about closure
If the last parameter in a method definition is prefixed with an ampersand (such as &action),
Ruby looks for a code block whenever that method is called. That code blo...
原创
2011-10-12 17:13:06 ·
141 阅读 ·
0 评论