Sha256: 08e2d80ce3c749126dda574f9841419d1f28d9cc389c0f7c3f44d46538b955fc

Contents?: true

Size: 326 Bytes

Versions: 9

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

require "zlib"
require_relative "constants"

module Unicode
  module Scripts
    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-scripts-1.11.0 lib/unicode/scripts/index.rb
unicode-scripts-1.10.0 lib/unicode/scripts/index.rb
unicode-scripts-1.9.0 lib/unicode/scripts/index.rb
unicode-scripts-1.8.0 lib/unicode/scripts/index.rb
unicode-scripts-1.7.0 lib/unicode/scripts/index.rb
unicode-scripts-1.6.0 lib/unicode/scripts/index.rb
unicode-scripts-1.5.0 lib/unicode/scripts/index.rb
unicode-scripts-1.4.0 lib/unicode/scripts/index.rb
unicode-scripts-1.3.0 lib/unicode/scripts/index.rb