class HappyMapperTools::StigChecklist::Checklist

Public Instance Methods

where(attrib, data) click to toggle source
# File lib/happy_mapper_tools/stig_checklist.rb, line 108
def where(attrib, data)
  stig.istig.vuln.each do |vuln|
    if vuln.stig_data.any? { |element| element.attrib == attrib && element.data == data }
      # TODO: Handle multiple objects that match the condition
      return vuln
    end
  end
end