summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-12-29 18:50:38 +0800
committerGitHub <noreply@github.com>2019-12-29 18:50:38 +0800
commita4c9cd37a232e64fac95233c4e40c770b241b746 (patch)
treef79120606e0c46cde9d674fcaaf7080c13bc00a8
parent2351661ebfe5caebf28c65c38259ed6dd982b184 (diff)
parent373b633f386af2874ee1f6aa01fb91cfe3b6e8a7 (diff)
downloadjson-a4c9cd37a232e64fac95233c4e40c770b241b746.tar.gz
Merge pull request #384 from jeremyevans/json-generate-doc-fix
Remove invalid JSON.generate description from JSON module rdoc
-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'