Sha256: cb9f7b951f5312f2ba1d927537a5dd714c41e334a8800d23087d15cc19fb2dc0

Contents?: true

Size: 294 Bytes

Versions: 8

Compression:

Stored size: 294 Bytes

Contents

require "zlib"
require_relative "constants"

module Unicode
  module Blocks
    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

8 entries across 8 versions & 1 rubygems

Version Path
unicode-blocks-1.10.0 lib/unicode/blocks/index.rb
unicode-blocks-1.9.0 lib/unicode/blocks/index.rb
unicode-blocks-1.8.0 lib/unicode/blocks/index.rb
unicode-blocks-1.7.0 lib/unicode/blocks/index.rb
unicode-blocks-1.6.0 lib/unicode/blocks/index.rb
unicode-blocks-1.5.0 lib/unicode/blocks/index.rb
unicode-blocks-1.4.0 lib/unicode/blocks/index.rb
unicode-blocks-1.3.0 lib/unicode/blocks/index.rb