summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2020-06-25 16:49:39 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-01 18:47:51 +0900
commit7d8ce96de6b977cebf6d9698235a8de8f8d808e1 (patch)
tree60388b8d6e7224b840b816f84af9bd649ecf60b7
parentbe6447381cdcb19b49360911eedca402578fd086 (diff)
[flori/json] RDoc enhancements
https://github.com/flori/json/commit/ada48f0236
-rw-r--r--ext/json/lib/json/common.rb18
1 files changed, 1 insertions, 17 deletions
diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb
index a5cb70ba80..c17c0ec33f 100644
--- a/ext/json/lib/json/common.rb
+++ b/ext/json/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: