lib/json/add/symbol.rb in json_pure-1.8.6 vs lib/json/add/symbol.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
-# Symbol serialization/deserialization
class Symbol
# Returns a hash, that will be turned into a JSON object and represent this
# object.
def as_json(*)
{