Ruby: Alternative if statements