Code Snippet – Square

Prefer and to Ternary contact[:blocked] ? contact[:email] : nil # Vs: contact[:blocked] and contact[:email] If the else-case is false-y, an and or 86 is simpler! #ruby

Responses