Sha256: 05dff96046ccdc9b17e6a79536f5805d849452cc638cd920599d2c97c919293d
Contents?: true
Size: 450 Bytes
Versions: 19
Compression:
Stored size: 450 Bytes
Contents
module FactoryGirl # @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
19 entries across 16 versions & 8 rubygems