Class: TwitterCldr::Resources::Properties::UnicodeDataPropertiesImporter
- Inherits:
-
PropertyImporter
- Object
- UnicodeImporter
- PropertyImporter
- TwitterCldr::Resources::Properties::UnicodeDataPropertiesImporter
- Defined in:
- lib/twitter_cldr/resources/properties/unicode_data_properties_importer.rb
Constant Summary collapse
- DATA_URL =
'ucd/UnicodeData.txt'
- PROPERTIES =
{ 2 => 'General_Category', 3 => 'Canonical_Combining_Class', 4 => 'Bidi_Class', 7 => 'Numeric_Type', 9 => 'Bidi_Mirrored', }
Instance Attribute Summary
Attributes inherited from PropertyImporter
#data_path, #data_url, #database, #input_path, #property_name
Instance Method Summary collapse
-
#initialize(input_path, database) ⇒ UnicodeDataPropertiesImporter
constructor
A new instance of UnicodeDataPropertiesImporter.
Methods inherited from PropertyImporter
Constructor Details
#initialize(input_path, database) ⇒ UnicodeDataPropertiesImporter
Returns a new instance of UnicodeDataPropertiesImporter.
21 22 23 24 25 26 27 28 29 |
# File 'lib/twitter_cldr/resources/properties/unicode_data_properties_importer.rb', line 21 def initialize(input_path, database) super( input_path: input_path, property_name: nil, data_url: DATA_URL, data_path: File.basename(DATA_URL), database: database ) end |