summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2020-06-25 16:49:39 -0500
committerBurdetteLamar <burdettelamar@yahoo.com>2020-06-25 16:49:39 -0500
commitada48f023606edf4abcb49fec4b60601971dcf62 (patch)
treeb67816f94837e5578699367a569a2b91b988b4cf
parent470d909c0d1ecf0460bd4ac036510ac61251143b (diff)
downloadjson-ada48f023606edf4abcb49fec4b60601971dcf62.tar.gz
RDoc enhancements
-rw-r--r--lib/json/common.rb18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb
index a5cb70b..c17c0ec 100644
--- a/lib/json/common.rb
+++ b/lib/json/common.rb
@@ -243,12 +243,6 @@ module JSON
# Use class \Set:
# ruby = JSON.parse(source, {array_class: Set})
# ruby # => #<Set: {"foo", 1.0, true, false, nil}>
- # Try class \Object:
- # # Raises NoMethodError (undefined method `<<' for #<Object:>):
- # JSON.parse(source, {array_class: Object})
- # Bad value:
- # # Raises TypeError (wrong argument type Symbol (expected Class)):
- # JSON.parse(source, {array_class: :foo})
#
# ---
#
@@ -257,16 +251,6 @@ module JSON
#
# ====== Exceptions
#
- # Raises an exception if +source+ is not \String-convertible:
- #
- # # Raises TypeError (no implicit conversion of Symbol into String):
- # JSON.parse(:foo)
- #
- # Raises an exception if +opts+ is not \Hash-convertible:
- #
- # # Raises TypeError (no implicit conversion of Symbol into Hash):
- # JSON.parse(['foo'], :foo)
- #
# Raises an exception if +source+ is not valid JSON:
#
# # Raises JSON::ParserError (783: unexpected token at ''):
@@ -277,7 +261,7 @@ module JSON
end
# Calls
- # JSON.parse(source, opts)
+ # parse(source, opts)
# with +source+ and possibly modified +opts+.
#
# Differences from JSON.parse: