Class: TwitterCldr::Resources::Uli::SegmentExceptionsImporter
- Defined in:
- lib/twitter_cldr/resources/uli/segment_exceptions_importer.rb
Constant Summary collapse
- URL =
"http://unicode.org/uli/trac/export/58/trunk/abbrs/json/%{locale}.json"
- LOCALES =
these are the only locales ULI supports at the moment
[:de, :en, :es, :fr, :it, :pt, :ru]
Constants inherited from Importer
Instance Attribute Summary
Attributes inherited from Importer
Instance Method Summary collapse
Methods inherited from Importer
#can_import?, default_params, #import, #initialize, locales, output_path, parameter, parameters, #prepare, requirement, requirements, ruby_engine
Constructor Details
This class inherits a constructor from TwitterCldr::Resources::Importer
Instance Method Details
#execute ⇒ Object
21 22 23 24 25 |
# File 'lib/twitter_cldr/resources/uli/segment_exceptions_importer.rb', line 21 def execute FileUtils.mkdir_p(input_path) FileUtils.mkdir_p(output_path) LOCALES.each { |locale| import_locale(locale) } end |