Wed, 02 Dec 2015 13:44:52 +0900 投稿
0

【Refactor Me】もっと短く書けそう...

Before

managers = []
employees.each do |e|
  managers << e if e.manager?
end

After

# your cool code

みんなのコメント