diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-11-10 12:14:14 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-11-12 21:39:31 +0900 |
commit | 17a931ab65b5a8bfe4e801a5faafbd1d9d5d5ede (patch) | |
tree | b829cd843a4217a4e0f3ba473ad46e4e6f2c2cf7 /lib | |
parent | d76e5fc1d2cedeba29fe7a5292f5d451dea0da57 (diff) | |
download | json-17a931ab65b5a8bfe4e801a5faafbd1d9d5d5ede.tar.gz |
Complex and Rational is embedded classes now
Diffstat (limited to 'lib')
-rw-r--r-- | lib/json/add/complex.rb | 1 | ||||
-rw-r--r-- | lib/json/add/rational.rb | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/json/add/complex.rb b/lib/json/add/complex.rb index 4d977e7..e63e29f 100644 --- a/lib/json/add/complex.rb +++ b/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/lib/json/add/rational.rb b/lib/json/add/rational.rb index 6be4034..f776226 100644 --- a/lib/json/add/rational.rb +++ b/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>, |