PHP 8.2.31
Preview: ext.rb Size: 588 B
//proc/thread-self/root/opt/alt/ruby34/share/ruby/json/ext.rb

# frozen_string_literal: true

require 'json/common'

module JSON
  # This module holds all the modules/classes that implement JSON's
  # functionality as C extensions.
  module Ext
    if RUBY_ENGINE == 'truffleruby'
      require 'json/ext/parser'
      require 'json/truffle_ruby/generator'
      JSON.parser = Parser
      JSON.generator = ::JSON::TruffleRuby::Generator
    else
      require 'json/ext/parser'
      require 'json/ext/generator'
      JSON.parser = Parser
      JSON.generator = Generator
    end
  end

  JSON_LOADED = true unless defined?(::JSON::JSON_LOADED)
end

Directory Contents

Dirs: 2 × Files: 4

Name Size Perms Modified Actions
add DIR
- drwxr-xr-x 2026-05-14 20:42:24
Edit Download
ext DIR
- drwxr-xr-x 2026-04-20 12:15:54
Edit Download
26.81 KB lrw-r--r-- 2026-04-20 12:16:10
Edit Download
588 B lrw-r--r-- 2026-04-20 12:16:10
Edit Download
1.54 KB lrw-r--r-- 2026-04-20 12:16:10
Edit Download
67 B lrw-r--r-- 2026-04-20 12:16:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).