Class: Utils::CciXml

Inherits:
Object show all
Defined in:
lib/utilities/cci_xml.rb

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.expand_path(File.join(File.expand_path(__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