Class: TwitterCldr::Resources::UnicodePropertyAliasesImporter
- Inherits:
-
UnicodeImporter
- Object
- UnicodeImporter
- TwitterCldr::Resources::UnicodePropertyAliasesImporter
- Defined in:
- lib/twitter_cldr/resources/unicode_property_aliases_importer.rb
Constant Summary collapse
- PROPERTY_ALIASES_URL =
'ucd/PropertyAliases.txt'
- PROPERTY_VALUE_ALIASES_URL =
'ucd/PropertyValueAliases.txt'
Instance Method Summary collapse
- #import ⇒ Object
-
#initialize(input_path, output_path) ⇒ UnicodePropertyAliasesImporter
constructor
Arguments:.
Constructor Details
#initialize(input_path, output_path) ⇒ UnicodePropertyAliasesImporter
Arguments:
input_path - path to a directory containing Scripts.txt
output_path - output directory for imported YAML files
20 21 22 23 |
# File 'lib/twitter_cldr/resources/unicode_property_aliases_importer.rb', line 20 def initialize(input_path, output_path) @input_path = input_path @output_path = output_path end |
Instance Method Details
#import ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/twitter_cldr/resources/unicode_property_aliases_importer.rb', line 25 def import File.write( File.join(@output_path, 'property_value_aliases.yml'), YAML.dump(parse_property_value_aliases) ) File.write( File.join(@output_path, 'property_aliases.yml'), YAML.dump(parse_property_aliases) ) end |