Sha256: 85a3c90db01eef8051570c30457165b7e45fd45ed37bbd078e0960ee3432e5cd
Contents?: true
Size: 449 Bytes
Versions: 33
Compression:
Stored size: 449 Bytes
Contents
module FactoryBot # @api private class CallbacksObserver def initialize(callbacks, evaluator) @callbacks = callbacks @evaluator = evaluator end def update(name, result_instance) callbacks_by_name(name).each do |callback| callback.run(result_instance, @evaluator) end end private def callbacks_by_name(name) @callbacks.select { |callback| callback.name == name } end end end
Version data entries
33 entries across 32 versions & 3 rubygems