Rails 7.1 adds Object#with method

Rails 7.1 adds Object#with method. The method is a short and alternate option for the clause. It can be used on any object as long as both the reader and writer methods are public. Before Rails 7.1…