lib/dry/events/event.rb in dry-events-0.2.0 vs lib/dry/events/event.rb in dry-events-0.3.0

- old
+ new

@@ -1,6 +1,8 @@ -require 'dry/equalizer' +# frozen_string_literal: true + +require 'dry/core/equalizer' require 'dry/events/constants' module Dry module Events # Event object @@ -10,11 +12,11 @@ include Dry::Equalizer(:id, :payload) InvalidEventNameError = Class.new(StandardError) do # @api private def initialize - super("please provide a valid event name, it could be either String or Symbol") + super('please provide a valid event name, it could be either String or Symbol') end end DOT = '.'.freeze UNDERSCORE = '_'.freeze @@ -85,6 +87,5 @@ @listener_method ||= :"on_#{id.to_s.gsub(DOT, UNDERSCORE)}" end end end end -