2 ms·
I know this isn't the point of your comments, but I'll take the opportunity to point out that Ruby has a case statement that reads a lot better for code like th
by mjbellantoni 13y ago
I know this isn't the point of your comments, but I'll take the opportunity to point out that Ruby has a case statement that reads a lot better for code like this:
case
when user.blacklisted?
# ... code ...
when grouper.full?
# ... code ...
# ... and so on ...
end