lib/cldr/export/data/aliases.rb
# only these aliases will be exported
only these aliases will be exported
only these aliases will be exported
def alias_for(alias_tag)
          doc.xpath("//alias/#{alias_tag}").each_with_object({}) do |alias_data, ret|
            next unless (replacement_attr = alias_data.attribute("replacement"))
            replacement = replacement_attr.value
            if replacement.include?(" ")
              replacement = replacement.split(" ")
            end
            type = alias_data.attribute("type").value
            ret[type] = replacement
          end
        end
def alias_for ( alias_tag ) doc . xpath ( "//alias/#{alias_tag}" ) . each_with_object ( { } ) do | alias_data , ret | next unless ( replacement_attr = alias_data . attribute ( "replacement" ) ) replacement = replacement_attr . value if replacement . include? ( " " ) replacement = replacement . split ( " " ) end type = alias_data . attribute ( "type" ) . value ret [ type ] = replacement end end
only these aliases will be exported
only these aliases will be exported
alias_tag