summaryrefslogtreecommitdiff
path: root/ext/json/lib
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-08-25 17:21:02 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-01-06 15:09:55 +0900
commit1658e6b5db0380c39d2423281e10acc5b6c6a8bd (patch)
tree6eede2fc94ee51e99145b2e7746142db2cbefadf /ext/json/lib
parent33d866558b4792d877e7735d2239b1337d334c6c (diff)
[flori/json] Remove invalid JSON.generate description from JSON module rdoc
This text used to be true in older versions of json, but has not been true for a number of years (since json version 2 I think). https://github.com/flori/json/commit/373b633f38
Diffstat (limited to 'ext/json/lib')
-rw-r--r--ext/json/lib/json.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/json/lib/json.rb b/ext/json/lib/json.rb
index b5a69124152..947ac630ad9 100644
--- a/ext/json/lib/json.rb
+++ b/ext/json/lib/json.rb
@@ -44,14 +44,6 @@ require 'json/common'
# require 'json'
# puts {:hello => "goodbye"}.to_json => "{\"hello\":\"goodbye\"}"
#
-# <tt>JSON.generate</tt> only allows objects or arrays to be converted
-# to JSON syntax. <tt>to_json</tt>, however, accepts many Ruby classes
-# even though it acts only as a method for serialization:
-#
-# require 'json'
-#
-# 1.to_json => "1"
-#
module JSON
require 'json/version'