If there is a defined built in ruby method, is it always preferable to use the built-in method?
If I have code such as:
if i == 0
What is the advantage to instead using the built-in ruby method?
if i.zero?
If there is a defined built in ruby method, is it always preferable to use the built-in method?
If I have code such as:
if i == 0
What is the advantage to instead using the built-in ruby method?
if i.zero?