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