Class: TwitterCldr::Resources::TimezoneRegionsImporter
- Defined in:
- lib/twitter_cldr/resources/timezone_regions_importer.rb
Overview
This class should be used with JRuby in 1.9 mode
Constant Summary
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
18 19 20 21 22 23 |
# File 'lib/twitter_cldr/resources/timezone_regions_importer.rb', line 18 def execute output_path = params.fetch(:output_path) FileUtils.mkdir_p(output_path) output_file = File.join(output_path, 'timezone_regions.yml') File.write(output_file, YAML.dump(regions)) end |