Comment on Github Ruby StyleguideparentComments−graywh13yThat's a good example shirt.blue? and return bar would be equivalent to return bar if shirt.blue? You can do the same with or and unless.−philwelch13yI find the postfix if and unless far more readable than the Perlish and and or operators. The "or die" construction for asserts is really amusing though.
Comments
That's a good example
would be equivalent to You can do the same with or and unless.I find the postfix if and unless far more readable than the Perlish and and or operators. The "or die" construction for asserts is really amusing though.