Why not simplify life even further and do:
def this_method(x)
some_method_like_multiply_by_two(x + 5)
end
Since x
is purely local to the method and you are returning the result of calling the other method, updating x
with intermediate operations accomplishes nothing. Go straight for the goal.