class TwitterCldr::Resources::Properties::BidiBracketsPropertyImporter

Constants

DATA_FILE
PROPERTY_NAME

Public Instance Methods

property_name() click to toggle source
# File lib/twitter_cldr/resources/properties/bidi_brackets_property_importer.rb, line 18
def property_name
  PROPERTY_NAME
end

Private Instance Methods

infer_paired_bracket_type(str) click to toggle source
# File lib/twitter_cldr/resources/properties/bidi_brackets_property_importer.rb, line 36
def infer_paired_bracket_type(str)
  TwitterCldr::Shared::Properties::BidiBrackets.bracket_types[str.upcase]
end
load() click to toggle source
Calls superclass method
# File lib/twitter_cldr/resources/properties/bidi_brackets_property_importer.rb, line 28
def load
  super do |data, ret|
    code_points = expand_range(data[0])
    paired_bracket_type = infer_paired_bracket_type(data[2])
    ret[PROPERTY_NAME][paired_bracket_type] += code_points
  end
end
source_path() click to toggle source
# File lib/twitter_cldr/resources/properties/bidi_brackets_property_importer.rb, line 24
def source_path
  requirements[:unicode].source_path_for(DATA_FILE)
end