Module: OpenscapParser::Groups
- Included in:
- Benchmark
- Defined in:
- lib/openscap_parser/groups.rb
Overview
Methods related to finding and saving rule references
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/openscap_parser/groups.rb', line 8 def self.included(base) base.class_eval do def groups @groups ||= group_nodes.map do |group_node| OpenscapParser::Group.new(parsed_xml: group_node) end end def group_nodes(xpath = './/Group') xpath_nodes(xpath) end end end |