lib/twitter_cldr/resources/properties/age_property_importer.rb (20 lines of code) (raw):

# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Resources module Properties class AgePropertyImporter < PropertyImporter DATA_FILE = 'ucd/DerivedAge.txt' PROPERTY_NAME = 'Age' requirement :unicode, Versions.unicode_version, [DATA_FILE] output_path 'unicode_data/properties' ruby_engine :mri def property_name PROPERTY_NAME end private def source_path requirements[:unicode].source_path_for(DATA_FILE) end end end end end