module T::Props::Serializable
def with_existing_hash(changed_props, existing_hash:)
def with_existing_hash(changed_props, existing_hash:) ized = existing_hash l = self.class.from_hash(serialized.merge(recursive_stringify_keys(changed_props))) tra = self.instance_variable_get(:@_extra_props) if self.instance_variable_defined?(:@_extra_props) tra = new_val.instance_variable_get(:@_extra_props) if new_val.instance_variable_defined?(:@_extra_props) _extra != new_extra erence = old_extra new_extra.reject {|k, v| old_extra[k] == v} se new_extra d e ArgumentError.new("Unexpected arguments: input(#{changed_props}), unexpected(#{difference})") l