lib/unicoder/builders/blocks.rb in unicoder-1.1.0 vs lib/unicoder/builders/blocks.rb in unicoder-1.1.1
- old
+ new
@@ -2,15 +2,17 @@
module Builder
class Blocks
include Builder
def initialize_index
- @index = []
+ @index = {
+ BLOCKS: []
+ }
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"]]
+ @index[:BLOCKS] << [line["from"].to_i(16), line["to"].to_i(16), line["name"]]
end
end
end
end
end