lib/json/add/complex.rb in json_pure-1.8.6 vs lib/json/add/complex.rb in json_pure-2.0.0
- old
+ new
@@ -1,5 +1,6 @@
+#frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end
defined?(::Complex) or require 'complex'
@@ -23,6 +24,6 @@
# Stores class name (Complex) along with real value <tt>r</tt> and imaginary value <tt>i</tt> as JSON string
def to_json(*)
as_json.to_json
end
-end
\ No newline at end of file
+end