[前][次][番号順一覧][スレッド一覧]

ruby-changes:62091

From: BurdetteLamar <ko1@a...>
Date: Wed, 1 Jul 2020 18:51:19 +0900 (JST)
Subject: [ruby-changes:62091] 7d8ce96de6 (master): [flori/json] RDoc enhancements

https://git.ruby-lang.org/ruby.git/commit/?id=7d8ce96de6

From 7d8ce96de6b977cebf6d9698235a8de8f8d808e1 Mon Sep 17 00:00:00 2001
From: BurdetteLamar <burdettelamar@y...>
Date: Thu, 25 Jun 2020 16:49:39 -0500
Subject: [flori/json] RDoc enhancements

https://github.com/flori/json/commit/ada48f0236

diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb
index a5cb70b..c17c0ec 100644
--- a/ext/json/lib/json/common.rb
+++ b/ext/json/lib/json/common.rb
@@ -243,12 +243,6 @@ module JSON https://github.com/ruby/ruby/blob/trunk/ext/json/lib/json/common.rb#L243
   # 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 https://github.com/ruby/ruby/blob/trunk/ext/json/lib/json/common.rb#L251
   #
   # ====== 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 https://github.com/ruby/ruby/blob/trunk/ext/json/lib/json/common.rb#L261
   end
 
   # Calls
-  #   JSON.parse(source, opts)
+  #   parse(source, opts)
   # with +source+ and possibly modified +opts+.
   #
   # Differences from JSON.parse:
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]