diff --git a/opal/browser/storage.rb b/opal/browser/storage.rb index 18a71ed..deda0a3 100644 --- a/opal/browser/storage.rb +++ b/opal/browser/storage.rb @@ -196,7 +196,7 @@ def save # # @return [String] the JSON representation def to_json - io = StringIO.new("{") + io = StringIO.new << "{" io << JSON.create_id.to_json << ":" << self.class.name.to_json << ","