-Simplify ruby keyword logic