3 4 5 6 7 8 9
# File 'lib/br_danfe/danfe.rb', line 3 def self.new(xmls) xmls = [xmls] unless xmls.is_a?(Array) parsed_xmls = xmls.map { |xml| BrDanfe::XML.new(xml) } create_danfe(parsed_xmls) end