lib/json/add/exception.rb in json_pure-1.8.6 vs lib/json/add/exception.rb in json_pure-2.0.0
- old
+ new
@@ -1,9 +1,9 @@
+#frozen_string_literal: false
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end
-# Exception serialization/deserialization
class Exception
# Deserializes JSON string by constructing new Exception object with message
# <tt>m</tt> and backtrace <tt>b</tt> serialized with <tt>to_json</tt>
def self.json_create(object)