everydayhero/ruby-style-guide — pull request #3 by antulik (2012-04-19 03:36:46+00:00)
Title: Indent 'when' as deep as 'case'

Our current style is a different and would like to see people's opinion on that.

Current:

``` ruby
case
when song.name == 'Misty'
puts 'Not again!'
when song.duration > 120
puts 'Too long!'
when Time.now.hour > 21
puts "It's too late"
else
song.play
end

kind = case year
when 1850..1889 then 'Blues'
when 1890..1909 then 'Ragtime'
when 1910..1929 then 'New Orleans Jazz'
when 1930..1939 then 'Swing'
when 1940..1950 then 'Bebop'
else 'Jazz'
end
```