3 ms·
That'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.
by graywh 14y ago
That'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.
- philwelch 14y agoI 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.