class Dry::Schema::Path
def &(other)
- Api: - private
def &(other) unless same_root?(other) raise ArgumentError, "#{other.inspect} doesn't have the same root #{inspect}" end self.class.new( key_matches(other, :select).compact.reject { |value| value.equal?(false) } ) end