lib/wizrb/shared/events/base.rb in wizrb-1.1.2 vs lib/wizrb/shared/events/base.rb in wizrb-1.2.0

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -require 'json' +require "json" module Wizrb module Shared module Events class Base @@ -12,10 +12,10 @@ @method = method @params = params end def to_json(*_args) - @to_json ||= { method: @method, params: @params }.to_json + @to_json ||= {method: @method, params: @params}.to_json end end end end end