class Dry::Schema::Path
def <=>(other)
- Api: - private
def <=>(other) raise ArgumentError, "Can't compare paths from different branches" unless same_root?(other) return 0 if keys.eql?(other.keys) res = key_matches(other).compact.reject { |value| value.equal?(false) } res.size < count ? 1 : -1 end