lib/phonelib/data_importer.rb
# method parses xml for formats data
method parses xml for formats data
method parses xml for formats data
def parse_formats(formats_children)
        without_comments(formats_children).map do |format|
          current_format = hash_from_xml(format, :children)
          without_comments(format.children).each do |f|
            current_format[name2sym(f.name)] =
                str_clean(f.children.first, not_format?(f.name))
          end
          current_format
        end
      end
def parse_formats ( formats_children ) without_comments ( formats_children ) . map do | format | current_format = hash_from_xml ( format , :children ) without_comments ( format . children ) . each do | f | current_format [ name2sym ( f . name ) ] = str_clean ( f . children . first , not_format? ( f . name ) ) end current_format end end
method parses xml for formats data
method parses xml for formats data
formats_children
<not_specific>