Method: Confetti::Config#populate_from_xml

Defined in:
lib/confetti/config.rb

#populate_from_xml(xml_file) ⇒ Object



60
61
62
63
64
65
66
67
68
# File 'lib/confetti/config.rb', line 60

def populate_from_xml(xml_file)
  begin
    file = File.read(xml_file)
  rescue Errno::ENOENT
    raise FileError, "file #{ xml_file } doesn't exist"
  end
  
  populate file 
end