IT牛人博客聚合 - ruby中的case...when语法
2012年7月26日 - ruby中的case...when语法Kevin Lynx 发表于 2012年07月26日 10:13 | Hits: 5356参考How to write a switch statement in Ruby? 其实用Rails写个业务逻...
Ruby: case 语句的使用 - 小浪鼓 - 博客园
2013年1月7日 - Ruby: case 语句的使用 case n when 0 then puts 'Nothing' when 2, 7, 10 then puts 'Other Numbers' else puts 'There is nothing here' endcase ...