What is the most readable way to write this in Ruby?
if (not url.blank?) and (not url.include?('*'))
|
What is the most readable way to write this in Ruby?
|
||||
|
|
|
Notes:
I'd write:
|
|||||||||
|
|
By boolean algebra theorems (specifically De Morgan's Laws) you could recode it as the following, which looks slightly more readable:
|
|||||||
|