# typed: true # rubocop:todo Sorbet/StrictSigil # frozen_string_literal: true module Cask # Sorted set containing all cask artifacts. class ArtifactSet < ::Set def each(&block) return enum_for(T.must(__method__)) { size } unless block to_a.each(&block) self end def to_a super.sort end end end