class Dry::Schema::Path

def include?(other)

Other tags:
    Api: - private
def include?(other)
  return false unless same_root?(other)
  return last.equal?(other.last) if index? && other.index?
  return self.class.new([*to_a[0..-2]]).include?(other) if index?
  self >= other && !other.key_matches(self).include?(nil)
end