# frozen_string_literal: true # Module all SoqlEnums include module SoqlEnum def self.values_for(object) ObjectSpace.each_object(Module).select { |class_name| class_name < self && class_name.to_s.start_with?("#{object}::") } end end