lib/abide_dev_utils/xccdf/diff/benchmark.rb
# Returns array of arrays of valid levels and valid profiles based on all children's linked profiles
# @param objs [Array] Array of AbideDevUtils::XCCDF::Parser::Objects::Profile objects
# @param level [String] a profile level
# @param profile [String] a partial / full profile title
# @return [Array] Array of two-item arrays
Returns array of arrays of valid levels and valid profiles based on all children's linked profiles
Returns array of arrays of valid levels and valid profiles based on all children ' s linked profiles
def validate_profile_objs(objs, level, profile)
          found = [LVL_PROF_DEFAULT]
          objs.each do |obj|
            validated = validate_profile_obj(obj, level, profile)
            next if validated.any?(&:nil?)
            found << validated
          end
          found
        end
def validate_profile_objs ( objs , level , profile ) found = [ LVL_PROF_DEFAULT ] objs . each do | obj | validated = validate_profile_obj ( obj , level , profile ) next if validated . any? ( & :nil? ) found << validated end found end
Returns array of arrays of valid levels and valid profiles based on all children's linked profiles
Returns array of arrays of valid levels and valid profiles based on all children ' s linked profiles
Array of two-item arrays
Array of two - item arrays
Array
objs
Array of AbideDevUtils::XCCDF::Parser::Objects::Profile objects
Array of AbideDevUtils :: XCCDF :: Parser :: Objects :: Profile objects
level
a profile level
a profile level
profile
a partial / full profile title
a partial / full profile title