mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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 changed files with 0 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue