summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-08-25 17:21:02 -0700
committerJeremy Evans <code@jeremyevans.net>2019-08-25 17:21:02 -0700
commit373b633f386af2874ee1f6aa01fb91cfe3b6e8a7 (patch)
treeed16d398ad203a3a450702b985f906d4c978607b
parent8d8e1aa70297d55034e3f6a4ce2f32300294b2a4 (diff)
downloadjson-373b633f386af2874ee1f6aa01fb91cfe3b6e8a7.tar.gz
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).
-rw-r--r--lib/json.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/json.rb b/lib/json.rb
index b5a6912..947ac63 100644
--- a/lib/json.rb
+++ b/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'