File: pure.rb

package info (click to toggle)
ruby-json 2.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 940 kB
  • sloc: ansic: 3,388; java: 3,162; ruby: 2,768; sh: 37; makefile: 10
file content (15 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'json/common'

module JSON
  # This module holds all the modules/classes that implement JSON's
  # functionality in pure ruby.
  module Pure
    require 'json/pure/parser'
    require 'json/pure/generator'
    $DEBUG and warn "Using Pure library for JSON."
    JSON.parser = Parser
    JSON.generator = Generator
  end

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