I don't find either of following code snippets to be better than the other:
case
when done? then :done
when exception? then :exception
else :processing
end
if done?
:done
elsif exception?
:exception
else
:processing
end
in fact, me and colleagues use the first example more often.
original discussion: rubocop/rubocop#3019
I don't find either of following code snippets to be better than the other:
in fact, me and colleagues use the first example more often.
original discussion: rubocop/rubocop#3019