summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-11-10 12:14:14 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-11-10 13:14:42 +0900
commit17e7a819f71f156316a69f5e42dc7e0c077f3735 (patch)
tree05421773ce0b13a695359b706071ec85821df33e /ext/json
parentb958e2add835d62c0a62edaf9a23ecbbd70a3635 (diff)
Complex and Rational is embedded classes now
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3753
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/lib/json/add/complex.rb1
-rw-r--r--ext/json/lib/json/add/rational.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/ext/json/lib/json/add/complex.rb b/ext/json/lib/json/add/complex.rb
index 4d977e7589..e63e29fd22 100644
--- a/ext/json/lib/json/add/complex.rb
+++ b/ext/json/lib/json/add/complex.rb
@@ -2,7 +2,6 @@
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end
-defined?(::Complex) or require 'complex'
class Complex
diff --git a/ext/json/lib/json/add/rational.rb b/ext/json/lib/json/add/rational.rb
index 6be4034581..f776226046 100644
--- a/ext/json/lib/json/add/rational.rb
+++ b/ext/json/lib/json/add/rational.rb
@@ -2,7 +2,6 @@
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end
-defined?(::Rational) or require 'rational'
class Rational
# Deserializes JSON string by converting numerator value <tt>n</tt>,