class Hash
def _deep_transform_values_in_object!(object, &block)
def _deep_transform_values_in_object!(object, &block) case object when Hash object.transform_values! { |value| _deep_transform_values_in_object!(value, &block) } when Array object.map! { |e| _deep_transform_values_in_object!(e, &block) } else yield(object) end end