Suppose I want to write a method in ruby whose last line is a method call but I do not want to return its return value. Is there a more elegant way to accomplish this other than adding a nil
after the call?
def f(param)
# some extra logic with param
g(param) # I don't want to return the return of g
end