Class: CompositionExclusions
- Inherits:
-
Object
- Object
- CompositionExclusions
- Defined in:
- ext/encoding/character/utf-8/data/generate-unicode-data.rb
Instance Method Summary collapse
Instance Method Details
#process(data) ⇒ Object
159 160 161 162 163 164 |
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 159 def process(data) data.excludes = Hash.new File.process(File.join(data.dir, 'CompositionExclusions.txt')) do |line| data.excludes[line.chomp.sub(/^\s*(.*?)\s*(#.*)?$/,'\1').to_i(16)] = true end end |