Search Ruby逆引きレシピ Advent Calender http://atnd.org/events/10901 14日目をお送りします。 レシピ先輩に面白いレシピはないか?と問いかけながらページをめくっていて 「レシピ184 コードの不吉なにおいを検出したい」が目に飛び込んできた 自分でいろいろと本を買ったりして、みるようになったはじめのきっかけは Martin Fowler リファクタリングだったなぁと思い起しながら、先輩に教えてもらうことにする インストールはgemで $gem install ree ソースは https://github.com/kevinrutherford/reek さっそく載っているサンプルで試してみる class CsvWriter def write_line(fields) if (fields.length == 0) puts else