It ’ s best practice to use the implicit return, and only include return explicitly when you ’ re returning a line that ’ s not at the end of the method.
def three_plus_two
return 3 + 2
end
best practice:
def three_plus_two
3 + 2
end
It ’ s best practice to use the implicit return, and only include return explicitly when you ’ re returning a line that ’ s not at the end of the method.
def three_plus_two
return 3 + 2
end
best practice:
def three_plus_two
3 + 2
end