OSDN Git Service

ruby-1.9.1-rc1
[splhack/AndroidRuby.git] / lib / ruby-1.9.1-rc1 / ext / json / lib / json / ext.rb
diff --git a/lib/ruby-1.9.1-rc1/ext/json/lib/json/ext.rb b/lib/ruby-1.9.1-rc1/ext/json/lib/json/ext.rb
new file mode 100644 (file)
index 0000000..ff4fa42
--- /dev/null
@@ -0,0 +1,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