Class: Utils::CciXml
Class Method Summary collapse
Class Method Details
.get_cci_list(cci_list_file) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/utilities/cci_xml.rb', line 5 def self.get_cci_list(cci_list_file) path = File.(File.join(File.(__dir__), '..', 'data', cci_list_file)) raise "CCI list does not exist at #{path}" unless File.exist?(path) cci_list = Nokogiri::XML(File.open(path)) cci_list.remove_namespaces! end |