[ruby-core:111252] [Ruby master Feature#18951] Object#with to set and restore attributes around a block