lib/abide_dev_utils/xccdf/parser/objects/digest_object.rb
def exclude_from_digest(exclude)
            unless exclude.is_a?(Array) || exclude.is_a?(Symbol)
              raise ArgumentError, 'exclude must be an Array or Symbol'
            end

            @exclude_from_digest ||= []
            if exclude.is_a?(Array)
              exclude.map! do |e|
                normalize_exclusion(e)
              end
              @exclude_from_digest += exclude
            else
              @exclude_from_digest << normalize_exclusion(exclude)
            end
            @exclude_from_digest.uniq!
          end
# Excludes instance variables that are not used in the digest
Excludes instance variables that are not used in the digest
Excludes instance variables that are not used in the digest
def exclude_from_digest(exclude)
            unless exclude.is_a?(Array) || exclude.is_a?(Symbol)
              raise ArgumentError, 'exclude must be an Array or Symbol'
            end
            @exclude_from_digest ||= []
            if exclude.is_a?(Array)
              exclude.map! do |e|
                normalize_exclusion(e)
              end
              @exclude_from_digest += exclude
            else
              @exclude_from_digest << normalize_exclusion(exclude)
            end
            @exclude_from_digest.uniq!
          end
def exclude_from_digest ( exclude ) unless exclude . is_a? ( Array ) || exclude . is_a? ( Symbol ) raise ArgumentError , 'exclude must be an Array or Symbol' end @exclude_from_digest ||= [ ] if exclude . is_a? ( Array ) exclude . map! do | e | normalize_exclusion ( e ) end @exclude_from_digest += exclude else @exclude_from_digest << normalize_exclusion ( exclude ) end @exclude_from_digest . uniq! end
Excludes instance variables that are not used in the digest
Excludes instance variables that are not used in the digest
exclude