Replying to ruby.social/@judofyr/101376662329228714
That’s a better example indeed. Instead of preventing an explicit return like in my example, this prevents having to store the result in a variable. But, exactly, I’d still prefer that.
result = do_stuff
result.is_admin = true
foo(result)