lib/abide_dev_utils/xccdf/diff/benchmark.rb
def valid_profile_and_level(child, level, profile)
          return LVL_PROF_DEFAULT unless child.respond_to?(:linked_profile)

          validate_profile_obj(child.linked_profile, level, profile)
        end
# Returns a two-item array of a valid level and a valid profile
# @param child [Object] XCCDF parser object or array of XCCDF parser objects
# @param level [String] a profile level
# @param profile [String] a partial / full profile title
# @return [Array] two-item array: first item - Profile level or nil, second item - Profile title or nil
Returns a two-item array of a valid level and a valid profile
Returns a two - item array of a valid level and a valid profile
def valid_profile_and_level(child, level, profile)
          return LVL_PROF_DEFAULT unless child.respond_to?(:linked_profile)
          validate_profile_obj(child.linked_profile, level, profile)
        end
def valid_profile_and_level ( child , level , profile ) return LVL_PROF_DEFAULT unless child . respond_to? ( :linked_profile ) validate_profile_obj ( child . linked_profile , level , profile ) end
Returns a two-item array of a valid level and a valid profile
Returns a two - item array of a valid level and a valid profile
two-item array: first item - Profile level or nil, second item - Profile title or nil
two - item array : first item - Profile level or nil second item - Profile title or nil
Array
child
XCCDF parser object or array of XCCDF parser objects
XCCDF parser object or array of XCCDF parser objects
level
a profile level
a profile level
profile
a partial / full profile title
a partial / full profile title