File: ext.rb

package info (click to toggle)
libjson-ruby 1.1.2-1%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 760 kB
  • ctags: 542
  • sloc: ruby: 3,040; ansic: 2,470; makefile: 19
file content (13 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'json/common'

module JSON
  # This module holds all the modules/classes that implement JSON's
  # functionality as C extensions.
  module Ext
    require 'json/ext/parser'
    require 'json/ext/generator'
    $DEBUG and warn "Using c extension for JSON."
    JSON.parser = Parser
    JSON.generator = Generator
  end
end