def update_values!(&b)
            return enum_for(__method__) unless block_given?
            return self.transform_values!(&b) if self.respond_to?(:transform_values!)
            return self.map!(&b) if self.respond_to?(:map!)

            raise NotImplementedError, "This object does not implement this method"
        end
def update_values!(&b)
            return enum_for(__method__) unless block_given?
            return self.transform_values!(&b) if self.respond_to?(:transform_values!)
            return self.map!(&b) if self.respond_to?(:map!)

            raise NotImplementedError, "This object does not implement this method"
        end
Modifies the compound object's values based on the provided block.