Use `attr_writer` to define trivial writer methods.