Skip to content

Commit

Permalink
Merge pull request #384 from jeremyevans/json-generate-doc-fix
Browse files Browse the repository at this point in the history
Remove invalid JSON.generate description from JSON module rdoc
  • Loading branch information
hsbt authored Dec 29, 2019
2 parents 2351661 + 373b633 commit a4c9cd3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@
# 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'

Expand Down

0 comments on commit a4c9cd3

Please sign in to comment.