From 373b633f386af2874ee1f6aa01fb91cfe3b6e8a7 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Sun, 25 Aug 2019 17:21:02 -0700 Subject: [PATCH] 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). --- lib/json.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/json.rb b/lib/json.rb index b5a69124..947ac630 100644 --- a/lib/json.rb +++ b/lib/json.rb @@ -44,14 +44,6 @@ # require 'json' # puts {:hello => "goodbye"}.to_json => "{\"hello\":\"goodbye\"}" # -# JSON.generate only allows objects or arrays to be converted -# to JSON syntax. to_json, 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'