Complex and Rational is embedded classes now
This commit is contained in:
parent
b958e2add8
commit
17e7a819f7
Notes:
git
2020-11-10 13:15:08 +09:00
@ -2,7 +2,6 @@
|
||||
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
|
||||
require 'json'
|
||||
end
|
||||
defined?(::Complex) or require 'complex'
|
||||
|
||||
class Complex
|
||||
|
||||
|
@ -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>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user