Sha256: 634db3daf93782dcd4f559148d8a7282d36507ddb45e10f856356dcb30313fc4
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
module Unicoder module Builder class Blocks include Builder def initialize_index @index = { BLOCKS: [] } end def parse! parse_file :blocks, :line, regex: /^(?<from>\S+?)\.\.(?<to>\S+);\s(?<name>.+)$/ do |line| @index[:BLOCKS] << [line["from"].to_i(16), line["to"].to_i(16), line["name"]] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unicoder-1.3.0 | lib/unicoder/builders/blocks.rb |
unicoder-1.1.1 | lib/unicoder/builders/blocks.rb |