Sha256: c69d3bce555eb250d90af787d2dadc59f0e562ca2a3ac0131f31dcc06f918489

Contents?: true

Size: 329 Bytes

Versions: 9

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

require "zlib"
require_relative "constants"

module Unicode
  module Confusable
    File.open(INDEX_FILENAME, "rb") do |file|
      serialized_data = Zlib::GzipReader.new(file).read
      serialized_data.force_encoding Encoding::BINARY
      INDEX = Marshal.load(serialized_data)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
unicode-confusable-1.12.0 lib/unicode/confusable/index.rb
unicode-confusable-1.11.0 lib/unicode/confusable/index.rb
unicode-confusable-1.10.0 lib/unicode/confusable/index.rb
unicode-confusable-1.9.0 lib/unicode/confusable/index.rb
unicode-confusable-1.8.0 lib/unicode/confusable/index.rb
unicode-confusable-1.7.0 lib/unicode/confusable/index.rb
unicode-confusable-1.6.0 lib/unicode/confusable/index.rb
unicode-confusable-1.5.0 lib/unicode/confusable/index.rb
unicode-confusable-1.4.0 lib/unicode/confusable/index.rb